OFFSET
0,3
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..10000
Macalester College Problem of the Week, Problem 855. Dizzying Triangles
Index entries for linear recurrences with constant coefficients, signature (2,1,-4,1,2,-1).
FORMULA
a(n) = 13*binomial(n, 3) + 5*binomial(n, 2) if n is odd; a(n) = 13*binomial(n,3) + 5* binomial(n, 2) - n/2 if n is even. - Harris Kwong (kwong(AT)cs.fredonia.edu)
From Sergey Perepechko, Dec 03 2008: (Start)
G.f.: 4*x^2*(2*x^3+5*x^2+5*x+1)/((x - 1)^4*(x + 1)^2).
a(n) = n*((n-1)*(13*n-8)/6 - floor(n/2)).
a(n) = A144298(n) - (3*n-1)*binomial(n,3). (End)
MATHEMATICA
A030117[n_] := n*((n - 1)*(13*n - 8)/6 - Quotient[n, 2]);
Array[A030117, 50, 0] (* Paolo Xausa, May 04 2026 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Erich Friedman
More terms from Paolo Xausa, May 04 2026
STATUS
approved
