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.

Showing 1-2 of 2 results.

A302986 Number of partitions of n into two distinct parts (p,q) such that p, q and |q-p| are all squarefree.

Original entry on oeis.org

0, 0, 1, 1, 1, 0, 2, 2, 2, 0, 1, 2, 2, 0, 3, 3, 4, 0, 2, 3, 3, 0, 4, 4, 5, 0, 4, 3, 4, 0, 4, 5, 5, 0, 4, 7, 5, 0, 6, 6, 7, 0, 8, 7, 9, 0, 6, 7, 8, 0, 5, 7, 7, 0, 6, 6, 8, 0, 8, 7, 9, 0, 11, 7, 9, 0, 8, 10, 8, 0, 10, 13, 12, 0, 10, 11, 11, 0, 11, 11, 15, 0, 9
Offset: 1

Views

Author

Wesley Ivan Hurt, Apr 16 2018

Keywords

Crossrefs

Programs

Formula

a(n) = Sum_{i=1..floor((n-1)/2)} mu(i)^2 * mu(n-i)^2 * mu(n-2*i)^2, where mu is the Möbius function (A008683).
a(n) = 0 for n in A111284. - Michel Marcus, Apr 17 2018

A303223 Sum of the perimeters of the family of rectangles with dimensions p and q such that |q - p| is prime, n = p + q and p < q.

Original entry on oeis.org

0, 0, 0, 8, 10, 12, 28, 16, 54, 20, 66, 24, 104, 28, 150, 32, 170, 36, 228, 40, 294, 44, 322, 48, 400, 52, 432, 56, 464, 60, 558, 64, 660, 68, 700, 72, 740, 76, 858, 80, 902, 84, 1032, 88, 1170, 92, 1222, 96, 1372, 100, 1428, 104, 1484, 108, 1650, 112, 1710
Offset: 1

Views

Author

Wesley Ivan Hurt, Apr 19 2018

Keywords

Crossrefs

Programs

  • Mathematica
    Table[2 n*Sum[(PrimePi[n - 2 i] - PrimePi[n - 2 i - 1]), {i, Floor[(n - 1)/2]}], {n, 80}]
  • PARI
    a(n) = 2*n*sum(i=1, (n-1)\2, isprime(n-2*i)); \\ Michel Marcus, Apr 21 2018

Formula

a(n) = 2n * Sum_{i=1..floor((n-1)/2)} A010051(n-2i).
Showing 1-2 of 2 results.