login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A152154 Positive residues of Pepin's Test for Fermat numbers using either 5 or 10 for the base. 4
2, 0, 16, 256, 65536, 3484838166, 17225898269543404863, 6964187975677595099156927503004398881, 14553806122642016769237504145596730952769427034161327480375008633175279343120 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
For n=0 or n>=2 the Fermat Number F(n) is prime if and only if 5^((F(n) - 1)/2) is congruent to -1 (mod F(n)).
5 was the base originally used by Pepin. The base 10 gives the same results.
Any positive integer k for which the Jacobi symbol (k|F(n)) is -1 can be used as the base instead.
REFERENCES
M. Krizek, F. Luca & L. Somer, 17 Lectures on Fermat Numbers, Springer-Verlag NY 2001, pp. 42-43.
LINKS
Chris Caldwell, The Prime Pages: Pepin's Test.
FORMULA
a(n) = 5^((F(n) - 1)/2) (mod F(n)), where F(n) is the n-th Fermat Number
EXAMPLE
a(4) = 5^(32768) (mod 65537) = 65536 = -1 (mod F(4)), therefore F(4) is prime.
a(5) = 5^(2147483648) (mod 4294967297) = 3484838166 (mod F(5)), therefore F(5) is composite.
CROSSREFS
Sequence in context: A009528 A178987 A242569 * A324665 A349036 A361591
KEYWORD
nonn
AUTHOR
Dennis Martin (dennis.martin(AT)dptechnology.com), Nov 27 2008
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 08:56 EDT 2024. Contains 371934 sequences. (Running on oeis4.)