OFFSET
0,1
COMMENTS
LINKS
FORMULA
G.f.: (6 + x)/(1 - x^2).
a(n) = (7 + 5*(-1)^n)/2.
a(n) = a(n-2) for n>1, a(0)=6, a(1)=1.
a(n) = -a(n-1)+7 for n>0, a(0)=6.
a(n) = 6*((n+1) mod 2) + (n mod 2).
a(n) = A010687(n+1).
a(n) = 13^n mod 7. - Vincenzo Librandi, Jun 01 2016
From Amiram Eldar, Jan 01 2023: (Start)
Multiplicative with a(2^e) = 6, and a(p^e) = 1 for p >= 3.
Dirichlet g.f.: zeta(s)*(1+5/2^s). (End)
MATHEMATICA
PadRight[{}, 120, {6, 1}] (* Harvey P. Dale, Apr 12 2018 *)
PROG
(Magma) &cat[ [6, 1]: n in [0..52] ];
(Magma) [(7+5*(-1)^n)/2: n in [0..104]];
CROSSREFS
KEYWORD
AUTHOR
Klaus Brockhaus, Apr 15 2010
STATUS
approved