Let {s k , k > 0} be the sequence defined from a given initial value, the seed, so, by the recurrence s k+1 = s 2 k - 2,k > 0. Then, for a suitable seed so, the number M h,n = h.2 n - 1 (where h < 2 n is odd) is prime iff s n-2 ≡ 0 mod M h,n . In general so depends both on h and on n. We describe a slight modification of this test which determines primality of numbers h.2 n ±1 with a seed which depends only on h, provided h ≢ 0 mod 5. In particular, when h = 4 m - 1, m odd, we have a test with a single seed depending only on h, in contrast with the unmodified test, which, as proved by W. Bosma in Explicit primality criteria for h 2 k ± 1, Math. Comp. 61 (1993), 97-109, needs infinitely many seeds. The proof of validity uses biquadratic reciprocity.
[1]
H. Riesel.
Lucasian criteria for the primality of =ℎ⋅2ⁿ-1
,
1969
.
[2]
W. Bosma.
Explicit primality criteria for $h2\sp k\pm 1$
,
1993
.
[3]
H. C. Williams,et al.
Édouard Lucas and primality testing
,
1999
.
[4]
K. Brown,et al.
Graduate Texts in Mathematics
,
1982
.
[5]
Michael Rosen,et al.
A classical introduction to modern number theory
,
1982,
Graduate texts in mathematics.
[6]
W. Bosma.
Supplement to Explicit Primality Criteria for h ⋅2 k ± 1
,
1993
.