OFFSET
0,2
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..10000
Eric Weisstein's World of Mathematics, Cuboctahedron.
Eric Weisstein's World of Mathematics, Figurate Number.
Wikipedia, Ehrhart polynomial.
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = (20*n^3 + 24*n^2 + 10*n + 3)/3.
G.f.: (x^3 + 23*x^2 + 15*x + 1) / (x-1)^4. - Paolo Xausa, Apr 02 2024
EXAMPLE
The a(1) = 19 lattice points are all permutations of the points (0,0,0), (0,0,1), and (0,1,1), where any number of the coordinates can also be made negative (e.g., (1,-1,0)).
MATHEMATICA
Array[(20*#^3 + 24*#^2 + 10*# + 3)/3 &, 50, 0] (* or *)
LinearRecurrence[{4, -6, 4, -1}, {1, 19, 93, 263}, 50] (* Paolo Xausa, Apr 02 2024 *)
PROG
(Python)
def A371532(n): return n*(n*(5*n+6<<2)+10)//3+1 # Chai Wah Wu, Apr 02 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Peter Kagey, Mar 26 2024
STATUS
approved