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.

A112389 Number of ways, counted up to symmetry, to build a contiguous building with n LEGO blocks of size 2 X 4.

Original entry on oeis.org

1, 24, 1560, 119580, 10166403, 915103765, 85747377755, 8274075616387, 816630819554486, 82052796578652749
Offset: 1

Views

Author

N. J. A. Sloane, Dec 06 2005

Keywords

Comments

a(6) is often quoted as 102981500, but this is incorrect.

References

  • Anthony Lane, The Joy of Bricks, The New Yorker, Apr 27-May 04, 1998, pp. 96-103.

Crossrefs

Extensions

Thanks to Gerald McGarvey, Christian Schroeder and Jud McCranie, who contributed to this entry.
a(8) from Søren Eilers, Oct 29 2006
a(9) from Johan Nilsson, Jan 06 2014
a(10) from Matthias Simon, Apr 06 2018

A123762 Number of ways, counted up to symmetry, to build a contiguous building with n LEGO blocks of size 1 X 2.

Original entry on oeis.org

1, 4, 37, 375, 4493, 56848, 753536, 10283622, 143607345, 2041497919, 29446248496, 429858432108
Offset: 1

Views

Author

Søren Eilers, Oct 29 2006

Keywords

Crossrefs

A272690 a(n) = 22*Sum_{i=0..n-2} 46^i*2^(n-2-i) + 2^(n-1).

Original entry on oeis.org

1, 24, 1060, 48672, 2238736, 102981504, 4737148480, 217908828672, 10023806116096, 461095081334784, 21210373741388800, 975677192103862272, 44881150836777619456, 2064532938491770404864, 94968515170621438443520, 4368551697848586168041472, 200953378101034963729186816
Offset: 1

Views

Author

N. J. A. Sloane, May 31 2016

Keywords

Comments

This sequence gives a lower bound on the number of ways of combining n 2 X 4 LEGO blocks.
The formula as given was found at the LEGO Company in 1974 and the numbers a(2), a(3), a(6) were used in communication until the emergence of A112389. - Søren Eilers, Aug 02 2018

Crossrefs

Programs

  • Maple
    t1:=n->22*add(46^i*2^(n-2-i),i=0..n-2)+2^(n-1);
    t2:=[seq(t1(n),n=1..20)];
  • Mathematica
    Table[22*Sum[46^k * 2^(n-k-2), {k,0,n-2}] + 2^(n-1), {n,1,25}] (* G. C. Greubel, May 31 2016 *)
  • PARI
    A272690(n) = 2^(n - 2)*(1 + 23^(n - 1)) \\ Rick L. Shepherd, Jun 02 2016
  • Ruby
    def A272690(n)
      22 * (0..n - 2).inject(0){|s, i| s + 46 ** i * 2 ** (n - 2 - i)} + 2 ** (n - 1)
    end # Seiichi Manyama, May 31 2016
    

Formula

From Colin Barker, May 31 2016: (Start)
a(n) = 2^(n-2)*(23+23^n)/23.
a(n) = 48*a(n-1) - 92*a(n-2) for n > 2.
G.f.: x*(1-24*x) / ((1-2*x)*(1-46*x)).
(End)
First formula follows by simplifying the formula in the definition, and the other two follow immediately. - Rick L. Shepherd, Jun 02 2016
Since there are 46 ways to attach one such brick on top of another, 2 of which are self-symmetric, the number of buildings with n 2 X 4 LEGO bricks of maximal height becomes a(n) = (46^(n-1) + 2^(n-1))/2 when adjusted for rotation in the XY-plane. That this is the same as the original formula found at LEGO follows by isolating a finite geometric series. - Søren Eilers, Aug 02 2018
Showing 1-3 of 3 results.