OFFSET
1,2
COMMENTS
a(1) = a(3) = 0. Conjecture: No other term is zero.
I checked all n's <1450 with each having the required prime form. - Robert G. Wilson v, Jun 22 2004
EXAMPLE
a(6) = 1613 is a prime and 1613 ==1 mod (13), prime(6) = 13.
MATHEMATICA
f[n_] := Block[{k = 1, l = Floor[ Log[10, Prime[n]] + 1], p = Prime[n]}, If[n == 1 || n == 3, 0, While[ !PrimeQ[k*10^l + p] || Mod[k*10^l + p, p] != 1, k++ ]; k*10^l + p]]; Table[ f[n], {n, 37}] (* Robert G. Wilson v, Jun 22 2004 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Jun 20 2004
EXTENSIONS
Edited, corrected and extended by Robert G. Wilson v, Jun 22 2004
STATUS
approved