OFFSET
0,12
COMMENTS
For a guide to related sequences, see A211422.
LINKS
Index entries for linear recurrences with constant coefficients, signature (1, 0, 1, -1, 1, -1, 0, -1, 1).
FORMULA
a(n) = a(n-1)+a(n-3)-a(n-4)+a(n-5)-a(n-6)-a(n-8)+a(n-9).
G.f.: x^8/((1-x)*(1-x^3)*(1-x^5)).
a(n) = n^2/30 - 7/30*n + O(1). - Charles R Greathouse IV, May 31 2026
MATHEMATICA
t[n_] := t[n] = Flatten[Table[-w + 3 x + 5 y, {w, 1, n}, {x, 1, n}, {y, 1, n}]]
c[n_] := Count[t[n], 0]
t = Table[c[n], {n, 0, 70}] (* A211524 *)
FindLinearRecurrence[t]
LinearRecurrence[{1, 0, 1, -1, 1, -1, 0, -1, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 1}, 69] (* Ray Chandler, Aug 02 2015 *)
PROG
(PARI) a(n)=(n^2-7*n+14771042108095860\12^(n%15)%12*2)/30 \\ Charles R Greathouse IV, May 31 2026
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Clark Kimberling, Apr 14 2012
STATUS
approved
