1,2

Determined by final three binary digits of n.

Table of n, a(n) for n=1..56.

Index entries for sequences related to final digits of numbers

Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,1,-1).

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

Sequence in context: A003159 A187691 A141259 * A256455 A035242 A190941

Adjacent sequences: A047498 A047499 A047500 * A047502 A047503 A047504

nonn,easy

N. J. A. Sloane

approved