OFFSET
1,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..200
Eric Weisstein's World of Mathematics, Graph Cycle.
Eric Weisstein's World of Mathematics, Menger Sponge Graph.
Index entries for linear recurrences with constant coefficients, signature (31,-244,480).
FORMULA
From Andrew Howroyd, Jun 12 2025: (Start)
a(n) = Sum_{k=1..n-1} 8*3^(k-1)*A291066(n-k).
a(n) = 16*(5*20^n - 17*8^n + 12*3^n)/85. (End)
From Elmo R. Oliveira, Apr 10 2026: (Start)
a(n) = 31*a(n-1) - 244*a(n-2) + 480*a(n-3).
G.f.: 192*x^2/((1 - 20*x)*(1 - 8*x)*(1 - 3*x)).
E.g.f.: (16/85)*(12 - 17*exp(5*x) + 5*exp(17*x))*exp(3*x). (End)
MATHEMATICA
LinearRecurrence[{31, -244, 480}, {0, 192, 5952}, 20] (* Paolo Xausa, Feb 05 2026 *)
PROG
(PARI) a(n) = 16*(5*20^n - 17*8^n + 12*3^n)/85 \\ Andrew Howroyd, Jun 12 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Eric W. Weisstein, Sep 12 2017
EXTENSIONS
a(7) onwards from Andrew Howroyd, Jun 12 2025
STATUS
approved
