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
LINKS
FORMULA
G.f.: (2+7x)/((1-x)(1+x)). - R. J. Mathar, Nov 21 2011
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
KEYWORD
nonn,easy
AUTHOR
STATUS
approved