"Source: Text/Crypt/PseudoRandom.text";
"Line: 376";
"Date: Thu Sep 25 14:47:46 2025";
"Main: Fri Sep 26 14:29:19 2025";
// original file: Text/Crypt/PseudoRandom.text, line: 376
// Example: H172E4 ()
print "Example: H172E4";
ei := GetEchoInput();
SetEchoInput(true);
K := GF(7);
C<D> := PrimitivePolynomial(K, 2);
C;
C := C * Coefficient(C,0)^-1;
C;
t := LFSRSequence (C, [K| 1,1], 48);
t; 
t := Decimation(t, 1, 5);
t;
B := BerlekampMassey(t);
B;
B := B * Coefficient(B, 2)^-1;
B;
IsPrimitive(B);
assert $1;
SetEchoInput(ei);
