OFFSET
0,1
COMMENTS
Sierpinski recursion applied to octahedron. Cf. A279511 for square pyramids.
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Wikipedia, Octahedron flake and Sierpinski tetrahedron.
Index entries for linear recurrences with constant coefficients, signature (9,-20,12).
FORMULA
a(n) = 3*2^n + 2^(n+1)*3^n + 1.
a(n) = 6a(n-1) - 6(2^n+1) + 1.
a(n) = 6a(n-1) - (3*2^(n+1) + 5).
a(n) = 2*6^n + 3*2^n + 1.
From Colin Barker, Dec 15 2016: (Start)
a(n) = 9*a(n-1) - 20*a(n-2) + 12*a(n-3) for n>2.
G.f.: (6 - 35*x + 34*x^2) / ((1 - x)*(1 - 2*x)*(1 - 6*x)).
(End)
MATHEMATICA
LinearRecurrence[{9, -20, 12}, {6, 19, 85}, 50] (* or *) Table[2*6^n + 3*2^n + 1, {n, 0, 50}] (* G. C. Greubel, Dec 22 2016 *)
PROG
(PARI) Vec((6 - 35*x + 34*x^2) / ((1 - x)*(1 - 2*x)*(1 - 6*x)) + O(x^30)) \\ Colin Barker, Dec 15 2016
(Python)
def a(n): return 2*6**n + 3*2**n + 1
print([a(n) for n in range(23)]) # Michael S. Branicky, Jun 19 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Steven Beard, Dec 14 2016
EXTENSIONS
Incorrect terms corrected by Colin Barker, Dec 15 2016
STATUS
approved