login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A010720
Period 2: repeat (5,9).
4
5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5, 9, 5
OFFSET
0,1
COMMENTS
Continued fraction expansion of A176324. - R. J. Mathar, Mar 08 2012
FORMULA
a(n) = -2*(-1)^n + 7. - Paolo P. Lava, Oct 20 2006
a(n) = a(n-2) for n > 1; a(0) = 5, a(1) = 9. G.f.: (5+9*x)/((1-x)*(1+x)). - Vincenzo Librandi, Aug 01 2010
MATHEMATICA
Table[5 + 4 Mod[n, 2], {n, 0, 50}] (* Jinyuan Wang, Feb 26 2020 *)
PROG
(PARI) a(n)=n%2*4+5 \\ Charles R Greathouse IV, Jul 13 2016
CROSSREFS
Sequence in context: A117014 A200283 A355178 * A094389 A057821 A133742
KEYWORD
nonn,easy
STATUS
approved