|  1 |    initial version    |  
Is this what you want?
R.<x> = GF(2)[]
K.<a> = GF(4, modulus=x^2+x+1)
L = lfsr_sequence([1,a], [0,1], 20)
print(L)
     |  2 |    No.2 Revision    |  
Is this what you want?
R.<x> = GF(2)[]
K.<a> = GF(4, modulus=x^2+x+1)
modulus=[1,1,1])
L = lfsr_sequence([1,a], [0,1], 20)
print(L)
 
 
                
                Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.