This site is supported by donations to The OEIS Foundation.

 Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing. Other ways to donate

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A100986 Smallest k such that concatenation of r*k and 1 is a prime for all r = 1 to n but not prime for r = n+1, or smallest k such that 10*r*k+1 is a prime for all r = 1 to n but not prime for r = n+1. 9
 1, 3, 21, 33, 1083, 2541, 822486, 51282, 1296060612 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS a(10) > 10^10. - Robert Price, Apr 02 2019 LINKS EXAMPLE a(4)=33 because 331, 661, 991 and 1321 (1321=10*4*33+1) are all prime, but 1651 (1651=10*5*33+1) is not prime. - Robert Price, Apr 02 2019 MATHEMATICA Table[k = 1; While[! AllTrue[Table[10*r*k + 1, {r, 1, n}], PrimeQ] || PrimeQ[10*(n + 1)*k + 1], k++]; k, {n, 1, 9}] (* Robert Price, Apr 02 2019 *) PROG (PARI) isok(k, n) = {for (r=1, n, if (! isprime(10*r*k+1), return (0)); ); !isprime(10*(n+1)*k+1); } a(n) = {my(k=1); while(! isok(k, n), k++); k; } \\ Michel Marcus, Apr 03 2019 CROSSREFS Cf. A089323. Sequence in context: A287930 A287799 A089323 * A213141 A075732 A087690 Adjacent sequences:  A100983 A100984 A100985 * A100987 A100988 A100989 KEYWORD more,nonn AUTHOR Ray G. Opao, Jan 13 2005 EXTENSIONS Corrected a(7) and added a(9) by Robert Price, Apr 02 2019 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified December 8 17:36 EST 2019. Contains 329865 sequences. (Running on oeis4.)