cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Previous Showing 11-12 of 12 results.

A173750 a(n) = smallest positive m such that k*m+1 is prime for k=2..n.

Original entry on oeis.org

1, 1, 2, 330, 714, 13530, 192660, 512820, 4601310, 863815050, 262428279750, 2169289182060, 2169289182060, 2169289182060, 4646092391146085880
Offset: 1

Views

Author

Zak Seidov, Nov 26 2010

Keywords

Crossrefs

Cf. A088250 (smallest number k such that r*k+1 is prime for all r = 1 to n).

Programs

  • Magma
    S:=[]; m:=1; for n in [1..11] do while not forall(t){ k: k in [2..n] | IsPrime(k*m+1) } do m+:=1; end while; Append(~S, m); end for; S; // Klaus Brockhaus, Nov 26 2010
  • Mathematica
    a[n_] := Block[{k = If[n < 4, 1, 6], s}, s = k; While[! AllTrue[k Range[2, n] + 1, PrimeQ], k += s]; k]; Array[a, 9] (* Giovanni Resta, Mar 30 2017 *)

Extensions

a(12)-a(15) from Giovanni Resta, Mar 31 2017

A202778 Least k such that x*k + 1 produces primes for x = 1..n and composite for x = n + 1.

Original entry on oeis.org

4, 1, 2, 330, 10830, 25410, 8224860, 512820, 12960606120, 434491727670, 1893245380950, 71023095613470, 878232256181280, 11429352906540438870
Offset: 1

Views

Author

Arkadiusz Wesolowski, Jan 06 2012

Keywords

References

  • Wacław Sierpiński, Czym sie zajmuje teoria liczb. Warsaw: PW "Wiedza Powszechna", 1957, pp. 88-89.

Crossrefs

Another version of A088250.

Programs

  • Mathematica
    Table[k = 1; While[i = 1; While[i <= n && PrimeQ[i*k + 1], i++]; i <= n || PrimeQ[i*k + 1], k++]; k, {n, 8}]

Extensions

a(14) from Giovanni Resta, Mar 31 2017
Previous Showing 11-12 of 12 results.