Gapplet

Given a shift polynomial s Z[X] of degree n-1, and the registers content g0, ..., gn-1 of integers, determine the values produced by the shift register.

Input s  e.g., X+1 if n = 2
</COMMENT>
 
Input g  e.g., [1,1] if n = 2
</COMMENT>
 
</COMMENT> </COMMENT>
 
Add a new value to the output sequence of the register
</COMMENT>
 
The updated shift register sequence
</COMMENT>