login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A010697 Period 2: repeat (2,7). 6

%I

%S 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,

%T 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,

%U 2,7,2,7,2,7,2,7,2,7,2,7,2

%N Period 2: repeat (2,7).

%C Continued fraction expansion of A176054. - _R. J. Mathar_, Mar 08 2012

%C Decimal expansion of 3/11. - _Franklin T. Adams-Watters_, Nov 21 2018

%H <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (0,1).

%F a(n) = -(5/2)*(-1)^n+9/2 = 7*(n mod 2)+2*[(n+1) mod 2]. - _Paolo P. Lava_, Oct 20 2006

%F G.f.: (2+7x)/((1-x)(1+x)). - _R. J. Mathar_, Nov 21 2011

%F a(n) = A010888(2^n+5^n) = A010888(A074600(n)). - _Peter M. Chema_, Jul 13 2016

%F E.g.f.: 7*sinh(x) + 2*cosh(x). - _Ilya Gutkovskiy_, Jul 14 2016

%t Table[-5/2*(-1)^n + 9/2, {n, 0, 120}] (* or *)

%t Table[7 Mod[n, 2] + 2 Mod[(n + 1), 2], {n, 0, 120}] (* or *)

%t CoefficientList[Series[(2 + 7 x)/((1 - x) (1 + x)), {x, 0, 120}], x] (* or *)

%t Table[NestWhile[Total@ IntegerDigits@ # &, 2^n + 5^n, IntegerLength@ # > 1 &], {n, 0, 120}] (* _Michael De Vlieger_, Jul 13 2016 *)

%o (PARI) a(n)=if(n%2,7,2) \\ _Charles R Greathouse IV_, Oct 07 2015

%Y Cf. A010888, A074600.

%K nonn,easy

%O 0,1

%A _N. J. A. Sloane_.

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 19 04:27 EDT 2019. Contains 326109 sequences. (Running on oeis4.)