0,1

Table of n, a(n) for n=0..80.

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

a(n)=-(-1)^n+5. a(n)=6*(n mod 2)+4*[(n+1) mod 2] - Paolo P. Lava, Oct 20 2006

G.f.: -2*(2+3*x)/((x-1)*(1+x)).

a(n) = 2*A010693(n).

(PARI) a(n)=n%2*2+4 \\ Charles R Greathouse IV, Jun 11 2015

Sequence in context: A091651 A199865 A196818 * A168428 A127018 A083396

Adjacent sequences: A010708 A010709 A010710 * A010712 A010713 A010714

nonn,easy

N. J. A. Sloane.

First formula corrected by Paolo P. Lava, Mar 14 2011

approved