RepetitionCode( n, F )
RepetitionCode returns the cyclic repetition code of length n over
F. The code has as many elements as F, because each codeword consists
of a repetition of one of these elements.
gap> C := RepetitionCode( 3, GF(5) );
a cyclic [3,1,3]2 repetition code over GF(5)
gap> Elements( C );
[ 0, x^2 + x + 1, 2x^2 + 2x + 2, 4x^2 + 4x + 4, 3x^2 + 3x + 3 ]
gap> IsPerfectCode( C );
false
gap> IsMDSCode( C );
true
GAP 3.4.4