login
A109947
Smallest prime == 1 (mod f(n)), where f(n) = concatenation 1,2,3,... up to n.
3
2, 13, 739, 4937, 24691, 123457, 29629609, 24691357, 1234567891, 530864193131, 12345678910111, 1851851836516681, 74074073460667279, 76543209242689521469, 8395061658875624936221, 123456789101112131415161
OFFSET
1,1
MATHEMATICA
s = "1"; Do[s = s <> ToString[n]; k = ToExpression[s]; i = 1; While[ !PrimeQ[i*k + 1], i++ ]; Print[i*k + 1], {n, 2, 30}] (* Ryan Propper, Aug 01 2005 *)
CROSSREFS
Cf. A109948.
Sequence in context: A179434 A101342 A119122 * A175513 A064185 A069109
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Jul 20 2005
EXTENSIONS
More terms from Ryan Propper, Aug 01 2005
STATUS
approved