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-11 of 11 results.

A240545 Least k > 0 such that n + p(k) is prime, where p(k) is the number of partitions of k.

Original entry on oeis.org

2, 1, 1, 2, 1, 2, 1, 8, 3, 2, 1, 2, 1, 9, 3, 2, 1, 2, 1, 8, 3, 2, 1, 9, 4, 8, 3, 2, 1, 2, 1, 8, 4, 11, 3, 2, 1, 8, 3, 2, 1, 2, 1, 9, 3, 2, 1, 10, 4, 8, 3, 2, 1, 9, 4, 10, 3, 2, 1, 2, 1, 8, 4, 15, 3, 2, 1, 8, 3, 2, 1, 2, 1, 9, 4, 8, 3, 2, 1, 8, 3, 2
Offset: 0

Views

Author

Sean A. Irvine, Apr 07 2014

Keywords

Comments

Conjecture of Zhi-Wei Sun: a(n) < n for n > 7.
Verified up to 6*10^8. - Sean A. Irvine, Apr 07 2014

Examples

			a(7)=8 because k=8 is the smallest k such that 7+A000041(k) is prime.
		

Crossrefs

Programs

  • Mathematica
    a[n_] := For[k = 1, True, k++, If[PrimeQ[n + PartitionsP[k]], Return[k]]];
    Table[a[n], {n, 0, 100}] (* Jean-François Alcover, Dec 15 2018 *)
Previous Showing 11-11 of 11 results.