ShiftRegisterSequence
ShiftRegisterSequence[n] gives a complete maximum-length sequence for a size n linear-feedback shift register.
ShiftRegisterSequence[{n, {tap1, tap2, ...}}]gives the complete sequence for a linear-feedback shift register with size n and taps at positions tapi.ShiftRegisterSequence[poly]gives the sequence for a linear-feedback shift register with feedback polynomial poly.ShiftRegisterSequence[{n, {tap1, tap2, ...}, f}]gives the sequence for a shift register with feedback function f.ShiftRegisterSequence[spec, s]gives the first s elements of the shift register sequence.ShiftRegisterSequence[spec, init, s]gives the shift register sequence starting from state init.
Examples
ShiftRegisterSequence[4]ShiftRegisterSequence[{3, {1, 3}}]Please visit the official Wolfram Language Reference for more details.