Bill Allombert on Wed, 12 Jul 2017 23:17:53 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: ffgen


On Wed, Jul 12, 2017 at 09:37:10PM +0200, Eric J. Van der Velden wrote:
> I wanted to create a generator for F16. But ffinit gives a polynomial of
> order 5. So g is not a generator of F16*.
> 
> ? g=ffgen([2,4],t)
> %161 = t
> ? g.mod
> %163 = t^4 + t^3 + t^2 + t + 1
> ? g^5
> %167 = 1
> 
> So my first question is why ffinit comes up with a order 5 polynomial.

g is a field generator. If you want a group generator use

h=ffprimroot(g)

? g=ffgen([2,4],t)
%1 = t
? fforder(g)
%2 = 5
? h=ffprimroot(g)
%3 = t^3+t^2+t
? fforder(h)
%4 = 15

Cheers,
Bill.