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”).

A281002
Square array read by antidiagonals downwards: A(n, 1) = second Wieferich prime to base n and A(n, k) = second Wieferich prime to base A(n, k-1) for k > 1.
3
3511, 19, 1006003, 7, 11, 3511, 491531
OFFSET
2,1
EXAMPLE
Array starts:
3511, 19, 7, 491531, ...
1006003, 11, ...
3511, 19, 7, 491531, ...
20771, 18043, ...
534851, 5, 20771, 18043, ...
PROG
(PARI) secondwieftobase(n) = my(i=0); forprime(p=1, , if(Mod(n, p^2)^(p-1)==1, if(i==0, i++, return(p))))
table(rows, cols) = for(x=2, rows+1, my(i=0, w=secondwieftobase(x)); while(i < cols, print1(w, ", "); w=secondwieftobase(w); i++); print(""))
table(2, 3)
CROSSREFS
Sequence in context: A338392 A342399 A043448 * A273472 A268352 A178871
KEYWORD
nonn,tabl,more
AUTHOR
Felix Fröhlich, Jan 12 2017
STATUS
approved