IJPAM: Volume 44, No. 3 (2008)
WITH CHEBYSHEV POLYNOMIALS




Clemson University
Clemson, SC 29634-0974, USA
e-mail: dpj@cs.clemson.edu

Southern Methodist University
Dallas, TX 75275-0122, USA
e-mail: mrayes@engr.smu.edu

Porto Alegre, 91509-900, BRAZIL
e-mail: trevisan@mat.ufrgs.br
Abstract.We consider a simple, fast randomized compositeness test.
Let denote
the degree-
Chebyshev polynomial of the second kind.
Rankin showed that
if
is an odd prime, then exactly
of the numbers
, satisfy
,
and the remaining
numbers satisfy
.
Moreover, these are precisely the numbers
for which
and
respectively.
We show that when
is an odd composite,
at least half of the members
are witnesses, unless
where
and
are twin primes,
in which case there must be
at least
witnesses.
However, these ratios occur only for a rare set of numbers,
and in practice the expected ratio of witnesses is very high.
In one experiment involving a million large
composite numbers, all but two composites were recognized with the first
randomly chosen
,
the other two requiring only an additional guess.
Received: January 1, 2008
AMS Subject Classification: 11Y11, 68W20
Key Words and Phrases: primality, randomized algorithms, Chebyshev polynomial
Source: International Journal of Pure and Applied Mathematics
ISSN: 1311-8080
Year: 2008
Volume: 44
Issue: 3