OFFSET
1,1
EXAMPLE
A(6,4) = 911, since the 6th prime is 13 and the smallest prime Wieferich base for 13 is 19. Applying this procedure recursively to the resulting bases a total of b-1 = 3 times leads to 911.
Array starts:
2 5 7 19 127 911 7331 167149 387749 17153317 ...
3 17 131 659 503 9833 49603 327317 13900147 144229223 ...
5 7 19 127 911 7331 167149 387749 17153317 ...
7 19 127 911 7331 167149 387749 17153317 432383657 ...
11 3 17 131 659 503 9833 49603 327317 ...
13 19 127 911 7331 167149 387749 ...
17 131 659 503 9833 49603 327317 ...
19 127 911 7331 167149 387749 17153317 ...
23 263 79 31 229 503 ...
29 41 313 1499 941 12011 ...
...
PROG
(PARI) forprime(p=1, 30, b=1; i=0; q=p; print1(p, ", "); while(i < 6, b++; if(Mod(b, q^2)^(q-1)==1 && isprime(b), print1(b, ", "); q=b; b=1; i++)); print(""))
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Felix Fröhlich, Oct 22 2014
STATUS
approved