OFFSET
1,3
COMMENTS
S(2,2,2) is the star graph with three legs of length two.
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (14,-84,280,-560,672,-448,128).
FORMULA
a(n) = 2^n*C(n,3)*((n-1)^3 - 3*(n-1)).
G.f.: 16*x^3*(1 + 58*x + 116*x^2 + 8*x^3)/(1 - 2*x)^7. - Stefano Spezia, Apr 20 2022
MATHEMATICA
A353029[n_] := 2^n*Binomial[n, 3]*((n-1)^3 - 3*(n-1));
Array[A353029, 25] (* Paolo Xausa, Jun 29 2026 *)
PROG
(Python) from math import comb
def a(n):
return (2**n)*comb(n, 3)*((n-1)**3-3*(n-1))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ben Eck, Apr 20 2022
EXTENSIONS
More terms from Paolo Xausa, Jun 29 2026
STATUS
approved
