OFFSET
1,1
REFERENCES
N. G. W. H. Beeger, On a new case of the congruence 2^(p-1) ≡ 1 (p^2), Messenger of Mathematics 51, (1922), p. 149-150
Paulo Ribenboim, 1093 (Chap 8), in 'My Numbers, My Friends', Springer-Verlag 2000 NY, page 213ff.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
W. Meissner, Über die Teilbarkeit von 2^p-2 durch das Quadrat der Primzahl p = 1093, Sitzungsberichte Königlich Preussischen Akadamie Wissenschaften Berlin, 35 (1913), 663-667. [Annotated scanned copy]
Eric Weisstein's World of Mathematics, Wieferich Prime.
Wikipedia, Wieferich prime.
EXAMPLE
MAPLE
seq(2 &^ (ithprime(n)-1) mod ithprime(n)^2, n=1..1000); # Robert Israel, Aug 03 2014
MATHEMATICA
PowerMod[2, #-1, #^2]&/@Prime[Range[50]] (* Harvey P. Dale, Apr 25 2012 *)
PROG
(PARI) forprime(p=2, 1e2, print1(lift(Mod(2, p^2)^(p-1)), ", ")) \\ Felix Fröhlich, Aug 03 2014
(Haskell)
import Math.NumberTheory.Moduli (powerMod)
a196202 n = powerMod 2 (p - 1) (p ^ 2) where p = a000040 n
-- Reinhard Zumkeller, May 18 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Sep 29 2011
STATUS
approved