OFFSET
1,1
COMMENTS
For n > 1, Wiener index of the 2n-crossed prism graph.
LINKS
Eric Weisstein's World of Mathematics, Crossed Prism Graph.
Eric Weisstein's World of Mathematics, Wiener Index.
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = 4*n*(n^2 + 2).
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4).
G.f.: 12*x*(1 + x^2)/(-1 + x)^4.
From Elmo R. Oliveira, Aug 09 2025: (Start)
E.g.f.: 4*x*(3 + 3*x + x^2)*exp(x).
MATHEMATICA
Table[4 n (n^2 + 2), {n, 50}]
LinearRecurrence[{4, -6, 4, -1}, {12, 48, 132, 288}, 20]
CoefficientList[Series[(12 (1 + x^2))/(-1 + x)^4, {x, 0, 20}], x]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Eric W. Weisstein, Sep 07 2017
STATUS
approved
