login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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