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

A294098 Number of partitions of 2n into two parts such that one part is squarefree and the other part is nonsquarefree.

Original entry on oeis.org

0, 0, 1, 0, 3, 1, 4, 1, 4, 2, 5, 2, 7, 4, 9, 4, 8, 1, 11, 4, 12, 4, 14, 5, 15, 5, 13, 8, 14, 8, 17, 9, 19, 7, 18, 3, 19, 8, 23, 10, 25, 9, 26, 9, 22, 12, 25, 12, 27, 11, 27, 12, 28, 5, 31, 12, 32, 12, 34, 13, 36, 12, 31, 18, 34, 18, 37, 19, 39, 17, 40, 7, 41
Offset: 1

Views

Author

Wesley Ivan Hurt, Oct 22 2017

Keywords

Crossrefs

Programs

Formula

a(n) = n - Sum_{i=1..n} [c(i) = c(2*n-i)], where [] is the Iverson bracket and c is the squarefree characteristic (A008966).
a(n) = Sum_{i=1..n} mu(i)^2 * (1-mu(2*n-i)^2) + (1-mu(i)^2) * mu(2*n-i)^2, where mu is the Möbius function (A008683). - Wesley Ivan Hurt, Nov 18 2017

A302391 Number of partitions of 2n into two parts with at least one nonsquarefree part.

Original entry on oeis.org

0, 0, 1, 1, 3, 2, 4, 3, 5, 4, 6, 5, 8, 7, 10, 8, 10, 7, 12, 9, 13, 9, 15, 11, 17, 12, 17, 15, 18, 15, 20, 17, 22, 16, 22, 15, 23, 18, 26, 20, 28, 20, 29, 21, 28, 23, 30, 24, 32, 25, 33, 26, 34, 23, 36, 27, 37, 27, 39, 29, 41, 29, 40, 34, 42, 34, 44, 36, 46
Offset: 1

Views

Author

Wesley Ivan Hurt, Apr 06 2018

Keywords

Crossrefs

Programs

  • Magma
    [&+[(1-MoebiusMu(2*n-k)^2*MoebiusMu(k)^2): k in [1..n]]: n in [1..70]]; // Vincenzo Librandi, Apr 09 2018
    
  • Mathematica
    Table[Sum[1 - MoebiusMu[2 n - i]^2*MoebiusMu[i]^2, {i, n}], {n, 100}]
  • PARI
    a(n) = sum(i=1, n, 1 - moebius(2*n-i)^2*moebius(i)^2); \\ Michel Marcus, Apr 09 2018

Formula

a(n) = Sum_{i=1..n} 1 - mu(2n-i)^2 * mu(i)^2, where mu is the Möbius function (A008683).
a(n) = n - A280226(n). - Wesley Ivan Hurt, Dec 11 2023

A294103 Sum of the differences of the larger and smaller parts in the partitions of 2n into two squarefree parts or two nonsquarefree parts.

Original entry on oeis.org

0, 2, 4, 12, 4, 24, 20, 54, 40, 72, 70, 114, 62, 116, 62, 182, 126, 292, 134, 330, 182, 412, 190, 460, 202, 468, 380, 518, 490, 632, 462, 692, 458, 890, 562, 1184, 638, 1088, 590, 1206, 590, 1430, 678, 1556, 986, 1578, 952, 1772, 1032, 1876, 1214, 1986, 1326
Offset: 1

Views

Author

Wesley Ivan Hurt, Oct 22 2017

Keywords

Crossrefs

Programs

  • Mathematica
    Table[2 Sum[(n - k) KroneckerDelta[MoebiusMu[k]^2, MoebiusMu[2 n - k]^2], {k, n}], {n, 80}]

Formula

a(n) = 2 * Sum_{i=1..n} (n - i) * [A008966(i) = A008966(2n-i)], where [] is the Iverson bracket.
Showing 1-3 of 3 results.