OFFSET
1,1
COMMENTS
The only unknown terms less than 10000, tested to 15000, are for n: 284, 714, 1257, 1618, 2248, 2450, 2779, 3886, 3891, 4007, 4359, 4784, 4912, 5364, 6108, 6356, 6371, 7570, 7668, 8446, 9606.
Prime(12)=37 and b_k for k == 2 (mod 3), the concatenation is divisible by 3; for k == 1 (mod 3), the concatenation is divisible by either 7 or 13; and finally for k == 0 (mod 3), the concatenation is divisible by 37.
LINKS
Vladimir Shevelev and Robert G. Wilson v, Table of n, a(n) for n = 1..10000 with -1 for those entries where a(n) has not yet been found.
FORMULA
a(n)=k for the least k such that p(n)*10^k+(10^k-1)/9 is prime, where p(n) is the n_th prime.
MATHEMATICA
f[n_] := Block[{k = 1, p = Prime[n]}, While[ !PrimeQ[p*10^k + (10^k - 1)/9], k++]; k]; f[12] = 0; Array[f, 100]
KEYWORD
nonn,base
AUTHOR
Vladimir Shevelev and Robert G. Wilson v, Apr 24 2015
STATUS
approved