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.

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