OFFSET
0,1
COMMENTS
1. Begin with a square tile.
2. Place square tiles on each edge to form a diamond shape.
3. Count the tiles: a(0) = 5.
4. Add tiles to fill the enclosing square.
5. Go to step 2.
LINKS
Iain Fox, Table of n, a(n) for n = 0..1660
Index entries for linear recurrences with constant coefficients, signature (7,-14,8)
FORMULA
From R. J. Mathar, Apr 20 2009: (Start)
a(n) = 7*a(n-1) - 14*a(n-2) + 8*a(n-3).
G.f.: -(5 - 22*x + 20*x^2)/((x - 1)*(2*x - 1)*(4*x - 1)).
(End)
E.g.f.: e^x + 2*(e^(2*x) + e^(4*x)). - Iain Fox, Dec 30 2017
MATHEMATICA
Table[2(4^n+2^n)+1, {n, 0, 30}] (* or *) LinearRecurrence[{7, -14, 8}, {5, 13, 41}, 30] (* Harvey P. Dale, Dec 30 2017 *)
PROG
(PARI) first(n) = Vec((5 - 22*x + 20*x^2)/(1 - 7*x + 14*x^2 - 8*x^3) + O(x^n)) \\ Iain Fox, Dec 30 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jun Mizuki (suzuki32(AT)sanken.osaka-u.ac.jp), Jul 07 2003
EXTENSIONS
Edited by Franklin T. Adams-Watters and Don Reble, Aug 15 2006
STATUS
approved