OFFSET
3,1
LINKS
Paolo Xausa, Table of n, a(n) for n = 3..10000
Index entries for linear recurrences with constant coefficients, signature (1,2,-2,-1,1).
FORMULA
a(n) = (3*n^2-n+6)/2, n odd, and a(n) = (3*n^2-2*n+6)/2, n even.
MATHEMATICA
LinearRecurrence[{1, 2, -2, -1, 1}, {15, 23, 38, 51, 73}, 50] (* Paolo Xausa, Jun 22 2026 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Zinuo Cheng, Jun 15 2026
STATUS
approved
