Fast primality tests for numbers less than 50⋅10⁹
G. C. Kurtz, Daniel N. Shanks, H. C. Williams · Mathematics of Computation · 1986
Consider the doubly infinite set of sequences A ( n ) A(n) given by \[ A ( n + 3 ) = r A ( n + 2 ) − s A ( n + 1 ) + A ( n ) A(n + 3) = rA(n + 2) - sA(n + 1) + A(n) \] with A ( − 1 ) = s A( - 1) = s , A ( 0 ) = 3 A(0) = 3 , A ( 1 ) = r A(1) = r . For a given pair r,s, the "signature" of n is defined to be the sextet \[ A ( − n − 1 ) , A ( − n ) , A ( − n + 1 ) , A ( n − 1 ) , A ( n ) , A ( n + 1 ) , A( - n - 1),A( - n),A( - n + 1),A(n - 1),A(n),A(n + 1), \] each reduced modulo n . Primes have only three types of signatures, depending on how they split in the cubic field generated by