A010678 Period 2: repeat (0,7).
0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (0,1).
Programs
-
Mathematica
PadRight[{},120,{0,7}] (* Harvey P. Dale, Oct 01 2013 *)
-
PARI
a(n)=n%2*7 \\ Charles R Greathouse IV, Jul 13 2016
Formula
a(n) = (7/2)*[1-(-1)^n] = 7*(n mod 2). - Paolo P. Lava, Oct 20 2006
G.f.: 7x/((1-x)(1+x)). - R. J. Mathar, Nov 21 2011