OFFSET
0,2
LINKS
T. Huber, N. Mayes, J. Opoku, and D. Ye, Ramanujan type congruences for quotients of Klein forms, Journal of Number Theory, 258, 281-333, (2024).
Index entries for linear recurrences with constant coefficients, signature (3,-3,2,-3,3,-1).
FORMULA
a(n) = floor((10 + 24*n + 18*n^2 + 4*n^3)/9).
EXAMPLE
For n=0, the sole solution is (x,y,z) = (0,0,0) so a(0) = 1.
For n=1, the a(1)=6 solutions are (-1, -3, 3), (-2, 0, 1), (-3, 3, -1), (1, -2, 0), (0, 1, -2), (3, -1, -3).
MATHEMATICA
n = Range[0, 500, 2];
Floor[(10 + 24*n + 18*n^2 + 4*n^3)/9]
PROG
(Python)
def A370349(n): return ((n<<2)+10)*(n+1)**2//9 # Chai Wah Wu, Mar 11 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jeffery Opoku, Feb 16 2024
STATUS
approved