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
 
Input g  e.g., [1,1] if n = 2
 
 
Add a new value to the output sequence of the register
 
The updated shift register sequence