OFFSET
1,1
COMMENTS
a(7) > 2*10^19. - Robert G. Wilson v, Nov 27 2004
a(8) > 2*10^32. - Jon E. Schoenfield, Mar 29 2015
EXAMPLE
a(4) = 337, a(5) = 32353 == 1 (mod 337).
MATHEMATICA
a[1] = 2; a[n_] := a[n] = Block[{k = 1, p = a[n - 1]}, While[ !PrimeQ[k*p + 1] || Union[ Join[{2, 3, 5, 7}, IntegerDigits[k*p + 1]]] != {2, 3, 5, 7}, k++ ]; k*p + 1]; Table[ a[n], {n, 6}] (* Robert G. Wilson v, Nov 27 2004 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Nov 25 2004
EXTENSIONS
a(6) from Robert G. Wilson v, Nov 27 2004
a(7) from Jon E. Schoenfield, Mar 29 2015
STATUS
approved