login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A353600
Second-smallest Wieferich base of n, i.e., second-smallest b > 1 such that b^(n-1) == 1 (mod n^2).
1
9, 10, 33, 18, 73, 19, 129, 82, 201, 9, 289, 22, 393, 199, 513, 40, 649, 54, 801, 244, 969, 42, 1153, 443, 1353, 730, 753, 41, 1801, 117, 2049, 604, 2313, 1126, 2593, 76, 2889, 1351, 3201, 148, 3529, 75, 3873, 568, 4233, 67, 4609, 1048, 5001, 2024, 1329, 406
OFFSET
2,1
PROG
(PARI) a(n) = my(i=0); for(b=2, oo, if(Mod(b, n^2)^(n-1)==1, if(i==0, i++, return(b))))
(Python)
def b(n, startk=2):
k, n2 = startk, n*n
while pow(k, n-1, n2) != 1: k += 1
return k
def a(n): return b(n, startk=b(n)+1)
print([a(n) for n in range(2, 54)]) # Michael S. Branicky, Apr 29 2022
CROSSREFS
Cf. A039678, A185103, A256517. Column 2 of A353602.
Sequence in context: A007252 A322653 A322465 * A119209 A329636 A289520
KEYWORD
nonn
AUTHOR
Felix Fröhlich, Apr 29 2022
STATUS
approved