OFFSET
1,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1000
Eric Weisstein's World of Mathematics, Clique Covering Number.
Eric Weisstein's World of Mathematics, Sierpinski Gasket Graph.
Index entries for linear recurrences with constant coefficients, signature (3,1,-3).
FORMULA
a(n) = (7*3^(n-2) + (-1)^n + 4)/4 for n > 1. - Andrew Howroyd, May 30 2025
From Elmo R. Oliveira, Apr 10 2026: (Start)
a(n) = 3*a(n-1) + a(n-2) - 3*a(n-3) for n > 4.
G.f.: x*(1 - 4*x^2 - x^3)/((1 + x)*(1 - x)*(1 - 3*x)).
E.g.f.: (1/36)*(9*exp(-x) + 36*exp(x) + 7*exp(3*x) - 4*(13 + 3*x)). (End)
MATHEMATICA
LinearRecurrence[{3, 1, -3}, {1, 3, 6, 17}, 30] (* Paolo Xausa, Apr 16 2026 *)
PROG
(PARI) a(n) = if(n==1, 1, (7*3^(n-2) + (-1)^n + 4)/4) \\ Andrew Howroyd, May 30 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Eric W. Weisstein, Apr 21 2019
EXTENSIONS
a(9) onwards from Andrew Howroyd, May 30 2025
STATUS
approved
