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.

A362831 Number of partitions of n into two distinct parts (s,t) such that pi(s) = pi(t).

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 2, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 2, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 2, 1, 1, 0, 0, 0, 1, 1, 2, 2, 3, 2, 2, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 2, 2, 3, 2, 2, 1, 1, 0, 0, 0, 1, 1, 2, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 2, 1
Offset: 1

Views

Author

Wesley Ivan Hurt, May 04 2023

Keywords

Examples

			a(51) = 3. The 3 partitions of 51 are (23,28), (24,27), and (25,26).
		

Crossrefs

Cf. A000720 (pi), A362721.

Programs

  • Mathematica
    Table[Sum[KroneckerDelta[PrimePi[k], PrimePi[n - k]], {k, Floor[(n - 1)/2]}], {n, 100}]

Formula

a(n) = Sum_{k=1..floor((n-1)/2)} [pi(k) = pi(n-k)], where [ ] is the Iverson bracket and pi is the prime counting function (A000720).
a(n) = (A362721(n-1) - ((n-1) mod 2))/2.