OFFSET
0,2
LINKS
FORMULA
If n mod 4 = 0 or 3 then a(n) odd, otherwise a(n) even.
For n > 9: a(n) = A014695(n).
From Chai Wah Wu, Apr 10 2021: (Start)
a(n) = a(n-1) - a(n-2) + a(n-3) for n > 12.
G.f.: (2*x^12 - 2*x^11 + 6*x^10 - 4*x^9 + 6*x^8 - 2*x^7 - 2*x^6 + 2*x^5 - 6*x^4 + 2*x^3 - 3*x^2 - x - 1)/((x - 1)*(x^2 + 1)). (End)
EXAMPLE
a(4)=5 since Product_{k<=4} (x^k + 1) = 1 + x + x^2 + 2x^3 + 2x^4 + 2x^5 + 2x^6 + 2x^7 + x^8 + x^9 + x^10 and 2 appears as a coefficient 5 times.
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Henry Bottomley, May 12 2002
STATUS
approved