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

A279281 Expansion of Product_{k>=1} (1 + x^(k*(3*k-2))).

Original entry on oeis.org

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

Views

Author

Ilya Gutkovskiy, Dec 09 2016

Keywords

Comments

Number of partitions of n into distinct octagonal numbers (A000567).

Examples

			a(105) = 2 because we have [96, 8, 1] and [65, 40].
		

Crossrefs

Programs

  • Mathematica
    nmax = 120; CoefficientList[Series[Product[1 + x^(k (3 k - 2)), {k, 1, nmax}], {x, 0, nmax}], x]

Formula

G.f.: Product_{k>=1} (1 + x^(k*(3*k-2))).

A322800 Number of compositions (ordered partitions) of n into octagonal numbers (A000567).

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 14, 18, 23, 29, 37, 46, 56, 68, 83, 102, 126, 156, 195, 244, 304, 377, 466, 575, 709, 874, 1080, 1338, 1660, 2061, 2557, 3170, 3926, 4857, 6006, 7428, 9191, 11380, 14096, 17465, 21640, 26807, 33197, 41099
Offset: 0

Views

Author

Ilya Gutkovskiy, Dec 26 2018

Keywords

Crossrefs

Programs

  • Maple
    h:= proc(n) option remember; `if`(n<1, 0, (t->
          `if`(t*(3*t-2)>n, t-1, t))(1+h(n-1)))
        end:
    a:= proc(n) option remember; `if`(n=0, 1,
          add(a(n-i*(3*i-2)), i=1..h(n)))
        end:
    seq(a(n), n=0..60);  # Alois P. Heinz, Dec 28 2018
  • Mathematica
    nmax = 54; CoefficientList[Series[1/(1 - Sum[x^(k (3 k - 2)), {k, 1, nmax}]), {x, 0, nmax}], x]

Formula

G.f.: 1/(1 - Sum_{k>=1} x^(k*(3*k-2))).

A294622 Number of partitions of n into generalized octagonal numbers (A001082).

Original entry on oeis.org

1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 6, 8, 8, 9, 9, 10, 13, 13, 14, 16, 17, 20, 20, 21, 24, 25, 28, 31, 33, 36, 37, 40, 45, 47, 50, 55, 59, 65, 67, 70, 77, 81, 87, 94, 99, 107, 111, 117, 127, 133, 141, 152, 160, 172, 178, 186, 201, 210, 223, 237, 249, 267, 276, 289, 308, 322, 341, 360, 378, 401
Offset: 0

Views

Author

Ilya Gutkovskiy, Nov 05 2017

Keywords

Examples

			a(8) = 3 because we have [8], [5, 1, 1, 1] and [1, 1, 1, 1, 1, 1, 1, 1].
		

Crossrefs

Programs

  • Mathematica
    nmax = 74; CoefficientList[Series[Product[1/((1 - x^(k (3 k - 2))) (1 - x^(k (3 k + 2)))), {k, 1, nmax}], {x, 0, nmax}], x]

Formula

G.f.: Product_{k>=1} 1/((1 - x^(k*(3*k-2)))*(1 - x^(k*(3*k+2)))).

A332016 Number of compositions (ordered partitions) of n into distinct octagonal numbers.

Original entry on oeis.org

1, 1, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 2, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 2, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 6, 0, 0, 1, 2, 0, 0, 6, 24, 0, 0, 2, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 6
Offset: 0

Views

Author

Ilya Gutkovskiy, Feb 04 2020

Keywords

Examples

			a(30) = 6 because we have [21, 8, 1], [21, 1, 8], [8, 21, 1], [8, 1, 21], [1, 21, 8] and [1, 8, 21].
		

Crossrefs

Showing 1-4 of 4 results.