An extension to the Berlekamp-Massey algorithm which applies when the terms of the sequences are integers modulo some given modulus
.
Reeds-Sloane Algorithm
See also
Berlekamp-Massey AlgorithmExplore with Wolfram|Alpha
References
Reeds, J. A. and Sloane, N. J. A. "Shift-Register Synthesis (ModuloCite this as:
Weisstein, Eric W. "Reeds-Sloane Algorithm." From MathWorld--A Wolfram Web Resource. https://mathworld.wolfram.com/Reeds-SloaneAlgorithm.html