OFFSET
0,3
COMMENTS
From a(1) onwards, first differences of A075664 (sum of next n cubes).
LINKS
Kelvin Voskuijl, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (7,-21,35,-35,21,-7,1).
FORMULA
G.f.: (1 - 6*x + 48*x^2 + 118*x^3 + 303*x^4 + 132*x^5 + 34*x^6)/(1 - x)^7. - Stefano Spezia, Jan 28 2025
MATHEMATICA
Table[(7 * n^6 - 21 * n^5 + 55 * n^4 - 75 * n^3 + 70 * n^2 - 36 * n + 8) / 8, {n, 1, 30}]
PROG
(PARI) a(n) = (7*n^6 - 21*n^5 + 55*n^4 - 75*n^3 + 70*n^2 - 36*n + 8)/8
(Python)
def A380502(n): return (n*(n*(n*(n*(n*(7*(n-3))+55)-75)+70)-36)>>3)+1 # Chai Wah Wu, Feb 09 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Kelvin Voskuijl, Jan 25 2025
STATUS
approved
