10.12.2012 Views

Prime Numbers

Prime Numbers

Prime Numbers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.6 Lucas pseudoprimes 143<br />

The Fibonacci pseudoprime test is not just a curiosity. As we shall see<br />

below, it can be implemented on very large numbers. In fact, it takes only<br />

about twice as long to run a Fibonacci pseudoprime test as a conventional<br />

pseudoprime test. And for those composites that are ±2 (mod5)itis,when<br />

combined with the ordinary base-2 pseudoprime test, very effective. In fact, we<br />

know no number n ≡±2 (mod 5) that is simultaneously a base-2 pseudoprime<br />

and a Fibonacci pseudoprime; see Exercise 3.41.<br />

In proving Theorem 3.6.1 it turns out that with no extra work we<br />

can establish a more general result. The Fibonacci sequence satisfies the<br />

recurrence uj = uj−1 + uj−2, with recurrence polynomial x 2 − x − 1. We shall<br />

consider the more general case of binary recurrent sequences with polynomial<br />

f(x) =x 2 − ax + b, wherea, b are integers with ∆ = a 2 − 4b not a square. Let<br />

Uj = Uj(a, b) = xj − (a − x) j<br />

x − (a − x)<br />

(mod f(x)),<br />

Vj = Vj(a, b) =x j +(a − x) j (mod f(x)), (3.8)<br />

where the notation means that we take the remainder in Z[x] upon division by<br />

f(x). The sequences (Uj), (Vj) both satisfy the recurrence for the polynomial<br />

x 2 − ax + b, namely,<br />

Uj = aUj−1 − bUj−2, Vj = aVj−1 − bVj−2,<br />

and from (3.8) we may read off the initial values<br />

U0 =0, U1 =1, V0 =2, V1 = a.<br />

If it was not already evident from (3.8), it is now clear that (Uj), (Vj) are<br />

integer sequences.<br />

In analogy to Theorem 3.6.1 we have the following result. In fact, we can<br />

read off Theorem 3.6.1 as the special case corresponding to a =1,b = −1.<br />

Theorem 3.6.3. Let a, b, ∆ be as above and define the sequences (Uj), (Vj)<br />

via (3.8). If p is a prime with gcd(p, 2b∆) = 1, then<br />

U ∆ p−( ≡ 0(modp). (3.9)<br />

p)<br />

Note that for ∆ = 5 and p odd, <br />

5 p<br />

p = 5 , so the remark following Theorem<br />

3.6.1 is justified. Since the Jacobi symbol <br />

∆<br />

n (see Definition 2.3.3) is equal<br />

to the Legendre symbol when n is an odd prime, we may turn Theorem 3.6.3<br />

into a pseudoprime test.<br />

Definition 3.6.4. We say that a composite number n with gcd(n, 2b∆) = 1<br />

is a Lucas pseudoprime with respect to x2 − ax + b if U ∆ n−( ≡ 0(modn).<br />

n)<br />

Since the sequence (Uj) is constructed by reducing polynomials modulo<br />

x 2 − ax + b, and since Theorem 3.6.3 and Definition 3.6.4 refer to this<br />

sequence reduced modulo n, we are really dealing with objects in the ring

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!