OFFSET
1,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,1,0,-1,-1,1).
FORMULA
MATHEMATICA
a[n_]:=Floor[5n^2/6]; Array[a, 52] (* or *) Rest[CoefficientList[Series[-x^2*(3*x^2 + 4*x + 3)/((x - 1)^3*(x + 1)*(x^2 + x + 1)), {x, 0, 52}], x]] (* or *) LinearRecurrence[{1, 1, 0, -1, -1, 1}, {0, 3, 7, 13, 20, 30, 40}, 52] (* James C. McMahon, Aug 12 2025 *)
PROG
(Python)
def A386851(n): return 5*n**2//6
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Chai Wah Wu, Aug 05 2025
STATUS
approved
