A335242 a(n) = 2*a(n-1) + a(n-3) for n >= 4, with initial values a(0) = 1, a(1) = 0, a(2) = 2, and a(3) = 3.
1, 0, 2, 3, 6, 14, 31, 68, 150, 331, 730, 1610, 3551, 7832, 17274, 38099, 84030, 185334, 408767, 901564, 1988462, 4385691, 9672946, 21334354, 47054399, 103781744, 228897842, 504850083, 1113481910, 2455861662, 5416573407, 11946628724, 26349119110, 58114811627
Offset: 0
Examples
a(2) = 2 thanks to the following two tilings (where the L-shaped trominoes are tiled with X's and the dominoes are left blank): ._ _ |X|_ | |_ |X|X| and |_|X| |_ _| |X X|
Links
- Index entries for linear recurrences with constant coefficients, signature (2,0,1).
Programs
-
Mathematica
LinearRecurrence[{2, 0, 1}, {1, 0, 2, 3}, 40]
Comments