login
A380353
a(n) = (n^2 - n + 2) * (5*n^2 - 5*n + 2) / 4.
2
1, 12, 64, 217, 561, 1216, 2332, 4089, 6697, 10396, 15456, 22177, 30889, 41952, 55756, 72721, 93297, 117964, 147232, 181641, 221761, 268192, 321564, 382537, 451801, 530076, 618112, 716689, 826617, 948736, 1083916, 1233057, 1397089, 1576972, 1773696, 1988281, 2221777
OFFSET
1,2
COMMENTS
First differences of A072474 (sum of next n squares).
FORMULA
a(n) = A051624(A000124(n-1)).
G.f.: x*(1+3*x+x^2)*(1+4*x+x^2)/(1-x)^5. - Jinyuan Wang, Jan 23 2025
E.g.f.: exp(x)*(4 + 22*x^2 + 20*x^3 + 5*x^4)/4 - 1. - Stefano Spezia, Jan 28 2025
MATHEMATICA
Table[((n^2 - n + 2)*(5*n^2 - 5*n + 2))/4, {n, 1, 40}]
PROG
(PARI) a(n) = (n^2 - n + 2) * (5*n^2 - 5*n + 2) / 4
CROSSREFS
Cf. A072474 (partial sums), A051624, A000124.
Cf. A005448 (first difference of sum of next n natural numbers).
Sequence in context: A193872 A258617 A307061 * A074359 A391894 A104062
KEYWORD
nonn,easy
AUTHOR
Kelvin Voskuijl, Jan 22 2025
STATUS
approved