I want to draw a circle using tkz-euclide and n segments of this circle. Since I want to have n as a basic variable I need to divide in the following example. However it doesn't work, any ideas?
\documentclass{minimal}
\usepackage{tkz-euclide}
\usepackage{tkz-base}
\usepackage{color}
\usepackage{calc}
\begin{document}
\begin{tikzpicture}[scale=3]
\tkzDefPoint(0,0){O}
\tkzDrawCircle[R](O,1 cm)
\def\sectors{20}
\foreach \i in {0,(360:\sectors),...,360}{
\tkzDefPoint({cos(\i*\FPpi/180)},{sin(\i*\FPpi/180)}){P}
\tkzDrawSegment[color=black](O,P)
%\tkzDrawPoint(P)
}
\end{tikzpicture}
\end{document}