OFFSET
1,2
COMMENTS
Determined by final three binary digits of n.
LINKS
Jorma K. Merikoski, Pentti Haukkanen, and Timo Tossavainen, The congruence x^n = -a^n (mod m): Solvability and related OEIS sequences, Notes. Num. Theor. Disc. Math. (2024) Vol. 30, No. 3, 516-529. See p. 528.
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,1,-1).
FORMULA
G.f.: x*(x^2 - x + 1)*(1+x)^3 / ( (x^4 + x^3 + x^2 + x + 1)*(x-1)^2 ). - R. J. Mathar, Oct 08 2011
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
STATUS
approved