OFFSET
0,2
LINKS
Euclid of Alexandria, Elements, VII Def. 17, p. 194, 300 BCE.
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = 1 + 11*n + 36*n^2 + 36*n^3 = (1 + 2*n)*(1 + 3*n)*(1 + 6*n).
G.f.: (1 + 80*x + 125*x^2 + 10*x^3)/(1 - x)^4. - Stefano Spezia, Nov 29 2021
MATHEMATICA
nterms=50; Table[36n^3+36n^2+11n+1, {n, 0, nterms-1}] (* Paolo Xausa, Nov 25 2021 *)
PROG
(PARI) a(n) = subst(m*(m+1)*(m+2)/6, 'm, 6*n+1); \\ Michel Marcus, Dec 16 2021
(Python)
def A349682(n): return n*(n*(36*n + 36) + 11) + 1 # Chai Wah Wu, Dec 27 2021
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Ralf Steiner, Nov 25 2021
STATUS
approved