A176415 Periodic sequence: repeat 7,1.
7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (0,1).
Crossrefs
Programs
-
Magma
&cat[ [7, 1]: n in [0..52] ]; [ 4+3*(-1)^n: n in [0..104] ];
-
Mathematica
PadRight[{},120,{7,1}] (* Harvey P. Dale, Dec 30 2018 *)
-
PARI
a(n)=7-n%2*6 \\ Charles R Greathouse IV, Oct 28 2011
Formula
a(n) = 4+3*(-1)^n.
a(n) = a(n-2) for n > 1; a(0) = 7, a(1) = 1.
a(n) = -a(n-1)+8 for n > 0; a(0) = 7.
a(n) = 7*((n+1) mod 2)+(n mod 2).
a(n) = A010688(n+1).
G.f.: (7+x)/(1-x^2).
Dirichglet g.f.: (1+6*2^(-s))*zeta(s). - R. J. Mathar, Apr 06 2011
Multiplicative with a(2^e) = 7, and a(p^e) = 1 for p >= 3. - Amiram Eldar, Jan 01 2023
Comments