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.

A089054 Solution to the non-squashing boxes problem (version 1).

Original entry on oeis.org

1, 2, 4, 8, 14, 23, 36, 54, 78, 109, 149, 199, 262, 339, 434, 548, 686, 849, 1043, 1269, 1535, 1842, 2199, 2607, 3078, 3613, 4225, 4915, 5700, 6581, 7576, 8686, 9934, 11321, 12871, 14585, 16493, 18596, 20925, 23481, 26303, 29392, 32788, 36492, 40553, 44972, 49799
Offset: 0

Views

Author

N. J. A. Sloane, Dec 04 2003

Keywords

Comments

Given n boxes labeled 1..n, such that box i weighs i grams and can support a total weight of i grams; a(n) = number of stacks of boxes that can be formed such that no box is squashed.

Crossrefs

Programs

  • Mathematica
    max = 50; B[x_] = 1+x/(1-x) + Sum[x^(3 2^(k-1))/Product[(1-x^(2^j)), {j, 0, k}], {k, 1, Log[2, max]}] + O[x]^max;
    A[x_] = (B[x]-x)/(1-x)^2;
    CoefficientList[A[x], x] (* Jean-François Alcover, Sep 01 2018 *)

Formula

G.f.: (B(x)-x)/(1-x)^2, where B(x) = g.f. for A088567.