Cyclic code (source code)

= Cyclic code
{wiki}

A length-$n$ cyclic code over $\mathbb F_q$ is an ideal of $\mathbb F_q[X]/(X^n-1)$. It is generated by a monic divisor of $X^n-1$.