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”).

A010697
Period 2: repeat (2,7).
6
2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2
OFFSET
0,1
COMMENTS
Continued fraction expansion of A176054. - R. J. Mathar, Mar 08 2012
Decimal expansion of 3/11. - Franklin T. Adams-Watters, Nov 21 2018
FORMULA
G.f.: (2+7x)/((1-x)(1+x)). - R. J. Mathar, Nov 21 2011
a(n) = A010888(2^n+5^n) = A010888(A074600(n)). - Peter M. Chema, Jul 13 2016
E.g.f.: 7*sinh(x) + 2*cosh(x). - Ilya Gutkovskiy, Jul 14 2016
a(n) = 14/a(n-1). - Nicolas Bělohoubek, Nov 11 2021
MATHEMATICA
Table[-5/2*(-1)^n + 9/2, {n, 0, 120}] (* or *)
Table[7 Mod[n, 2] + 2 Mod[(n + 1), 2], {n, 0, 120}] (* or *)
CoefficientList[Series[(2 + 7 x)/((1 - x) (1 + x)), {x, 0, 120}], x] (* or *)
Table[NestWhile[Total@ IntegerDigits@ # &, 2^n + 5^n, IntegerLength@ # > 1 &], {n, 0, 120}] (* Michael De Vlieger, Jul 13 2016 *)
PROG
(PARI) a(n)=if(n%2, 7, 2) \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
Sequence in context: A151869 A262083 A181284 * A088666 A170854 A215140
KEYWORD
nonn,easy
AUTHOR
STATUS
approved