OFFSET
3,1
COMMENTS
Sequence T(n,3) in A360572.
LINKS
Andrew Howroyd, Table of n, a(n) for n = 3..1000
M. Aldi and S. Bevins, L_oo-algebras and hypergraphs, arXiv:2212.13608 [math.CO], 2022. See page 9.
M. Mainkar, Graphs and two step nilpotent Lie algebras, arXiv:1310.3414 [math.DG], 2013. See page 1.
Eric Weisstein's World of Mathematics, Cycle Graph.
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(3) = 12, a(4) = 25, a(5) = 41, a(n) = n*(n+11)*(n-2)/6 for n >= 6.
a(n) = A106058(n+1) - 2 for n >= 6. - Hugo Pfoertner, Jun 02 2023
G.f.: x^3*(12 - 23*x + 13*x^2 + 6*x^3 - 9*x^4 + x^5 + x^6)/(1 - x)^4. - Andrew Howroyd, Nov 13 2025
MATHEMATICA
LinearRecurrence[{4, -6, 4, -1}, {12, 25, 41, 68, 105, 152, 210}, 50] (* Paolo Xausa, Nov 14 2025 *)
PROG
(Python)
def A363378(n):
values = [12, 25, 41]
for i in range(6, n+1):
result = (i*(i+11)*(i-2))/6
values.append(result)
return values
(PARI) a(n) = if(n<6, [12, 25, 41][n-2], n*(n+11)*(n-2)/6) \\ Andrew Howroyd, Nov 13 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Samuel J. Bevins, Jun 01 2023
STATUS
approved
