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”).

A202779
Least k such that x*k - 1 produces primes for x=1..n and composite for x=n+1.
1
8, 3, 4, 1410, 6, 154770, 5246010, 2894220, 407874180, 214580145780, 9448481062020, 247236503934420, 2545206711847800, 18178612369988250180, 53792264108455702830
OFFSET
1,1
REFERENCES
Wacław Sierpiński, Czym sie zajmuje teoria liczb. Warsaw: PW "Wiedza Powszechna", 1957, pp. 88-89.
MATHEMATICA
Table[k = 3; While[i = 1; While[i <= n && PrimeQ[i*k - 1], i++]; i <= n || PrimeQ[i*k - 1], k++]; k, {n, 8}]
CROSSREFS
Another version of A088651.
Sequence in context: A021549 A013665 A209059 * A328498 A199440 A199293
KEYWORD
more,nonn
AUTHOR
STATUS
approved