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.

A357352 Number of partitions of n into distinct positive triangular numbers such that the number of parts is a triangular number.

Original entry on oeis.org

1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 1, 1, 0, 1, 0, 2, 0, 1, 1, 0, 1, 1, 1, 0, 3, 0, 1, 1, 2, 0, 1, 1, 1, 3, 0, 2, 1, 1, 1, 1, 2, 2, 2, 1, 0, 3, 1, 0, 4, 1, 2, 2, 2, 1, 2, 2, 1, 3, 1, 3, 2, 1, 3, 3, 1, 2, 3, 3, 2, 2, 3, 1, 3, 3, 2, 4, 2, 2, 6, 2, 4, 2, 4
Offset: 0

Views

Author

Ilya Gutkovskiy, Sep 25 2022

Keywords

Examples

			a(56) = 2 because we have [45,10,1] and [21,15,10,6,3,1].
		

Crossrefs

Programs

  • Maple
    b:= proc(n, i, t) option remember; (h-> `if`(n=0,
         `if`(issqr(8*t+1), 1, 0), `if`(n>i*(i+1)*(i+2)/6, 0,
         `if`(h>n, 0, b(n-h, i-1, t+1))+b(n, i-1, t))))(i*(i+1)/2)
        end:
    a:= n-> b(n, floor((sqrt(1+8*n)-1)/2), 0):
    seq(a(n), n=0..100);  # Alois P. Heinz, Sep 25 2022
  • Mathematica
    b[n_, i_, t_] := b[n, i, t] = With[{h = i(i+1)/2}, If[n == 0, If[IntegerQ@ Sqrt[8t+1], 1, 0], If[n > i(i+1)(i+2)/6, 0, If[h > n, 0, b[n-h, i-1, t+1]] + b[n, i-1, t]]]];
    a[n_] := b[n, Floor[(Sqrt[8n+1]-1)/2], 0];
    Table[a[n], {n, 0, 100}] (* Jean-François Alcover, Apr 22 2025, after Alois P. Heinz *)

A286141 Number of partitions of n into a squarefree number of parts.

Original entry on oeis.org

1, 1, 2, 3, 4, 6, 9, 12, 16, 22, 30, 40, 53, 70, 92, 120, 154, 199, 254, 324, 409, 517, 648, 811, 1008, 1253, 1549, 1911, 2347, 2880, 3519, 4294, 5219, 6338, 7671, 9273, 11173, 13451, 16147, 19359, 23151, 27656, 32958, 39231, 46594, 55276, 65444, 77391, 91341, 107689, 126734
Offset: 0

Views

Author

Ilya Gutkovskiy, May 07 2017

Keywords

Comments

Also number of partitions of n such that the largest part is a squarefree (A005117).

Examples

			a(6) = 9 because we have [6], [5, 1], [4, 2], [4, 1, 1], [3, 3], [3, 2, 1], [2, 2, 2], [2, 1, 1, 1, 1] and [1, 1, 1, 1, 1, 1] (partitions into a squarefree number of parts).
Also a(6) = 9 because we have [6], [5, 1], [3, 3], [3, 2, 1], [3, 1, 1, 1], [2, 2, 2], [2, 2, 1, 1], [2, 1, 1, 1, 1] and [1, 1, 1, 1, 1, 1] (partitions such that the largest part is a squarefree).
		

Crossrefs

Programs

  • Mathematica
    Join[{1}, Table[Length@Select[IntegerPartitions@n, SquareFreeQ@Length@# &], {n, 50}]]
    nmax = 50; CoefficientList[Series[1 + Sum[MoebiusMu[i]^2 x^i/Product[1 - x^j, {j, 1, i}], {i, 1, nmax}], {x, 0, nmax}], x]

Formula

G.f.: 1 + Sum_{i>=1} x^A005117(i) / Product_{j=1..A005117(i)} (1 - x^j).

A339444 Number of partitions of n into triangular numbers such that the number of parts is a triangular number.

Original entry on oeis.org

1, 1, 0, 2, 0, 1, 2, 1, 2, 1, 4, 1, 4, 2, 3, 6, 4, 6, 4, 7, 6, 10, 8, 8, 11, 11, 14, 11, 17, 14, 22, 19, 18, 24, 24, 30, 27, 33, 31, 38, 42, 39, 47, 49, 54, 59, 60, 63, 72, 77, 79, 85, 95, 94, 104, 116, 115, 131, 133, 142, 154, 165, 168, 180, 200, 203
Offset: 0

Views

Author

Ilya Gutkovskiy, Dec 05 2020

Keywords

Examples

			                          [1]
                          [1 1]      [1]
                          [1 1 1]    [1 1]    [1]
a(10) = 4 because we have [1 1 1 1], [1 3 3], [3 6] and [10].
		

Crossrefs

Showing 1-3 of 3 results.