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.

A365967 a(2*n) = A030186(n), a(2*n+1) = A033505(n).

Original entry on oeis.org

1, 1, 2, 3, 7, 10, 22, 32, 71, 103, 228, 331, 733, 1064, 2356, 3420, 7573, 10993, 24342, 35335, 78243, 113578, 251498, 365076, 808395, 1173471, 2598440, 3771911, 8352217, 12124128, 26846696, 38970824, 86293865, 125264689, 277376074, 402640763, 891575391
Offset: 0

Views

Author

Greg Dresden, Sep 23 2023

Keywords

Comments

a(n) is the number of ways to tile a double-height board of n cells with squares and dominos. For example, here is the board for n=9:
|||_||
|||_|||
and here is one of the a(9)=103 possible tilings of this board:
| |||_|_
|||___|_|.

Crossrefs

Programs

  • Mathematica
    a[0] = 1; a[1] = 1; a[2] = 2; a[3] = 3;
    a[n_] := a[n] = If[EvenQ[n], a[n-1] + a[n-2] + a[n-3] + a[n-4], a[n-1] + a[n-2]];
    Table[a[n],{n,0,30}]

Formula

a(n) = 3*a(n-2) + a(n-4) - a(n-6).
a(2*n) = a(2*n-1) + a(2*n-2) + a(2*n-3) + a(2*n-4).
a(2*n+1) = a(2*n) + a(2*n-1).
G.f.: (1+x-x^2)/(1-3*x^2-x^4+x^6).