OFFSET
1,1
FORMULA
EXAMPLE
PROG
(Python)
import math
def a(n): return (n * math.ceil(n/2)) + (15 + 25*n + 15*(n**2) + 14*(n**3) - 3*(((-1)**n))*(5 + n*(3 + n))) // 96
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Torlach Rush, Aug 02 2022
STATUS
proposed