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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A010717 Period 2: repeat (5,6). 3
5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

COMMENTS

This is the continued fraction expansion of the constant A176320 = 5/2 + sqrt(255)/6. - R. J. Mathar, Nov 21 2011

LINKS

Table of n, a(n) for n=0..80.

Index entries for linear recurrences with constant coefficients, signature (0,1).

FORMULA

a(n) = -1/2*(-1)^n + 11/2 = 6*(n mod 2)+5*[(n+1) mod 2]. - Paolo P. Lava, Oct 20 2006

a(n) = a(n-2) for n>1; a(0)=5, a(1)=6. G.f.: (5+6*x)/((1-x)*(1+x)). - Vincenzo Librandi, Aug 01 2010

a(n) = floor(11*(n+1)/2) - floor(11*n/2). - James Van Alstine, Jul 17 2014

MAPLE

A010717:= n -> 5 + (n mod 2):

seq(A010717(n), n=0..10); # Robert Israel, Jul 17 2014

PROG

(PARI) contfrac(5/2+sqrt(precision(255., 150))/6) \\ NB: Depending on the chosen precision, the last term may be off by +/- 1, so it would be safer to discard it, e.g., using vecextract(..., "^-1"). - M. F. Hasler, Sep 25 2013

(PARI) a(n)=n%2+5 \\ Charles R Greathouse IV, Jul 13 2016

CROSSREFS

Sequence in context: A106704 A127205 A006944 * A046603 A139396 A010487

Adjacent sequences:  A010714 A010715 A010716 * A010718 A010719 A010720

KEYWORD

nonn,easy

AUTHOR

N. J. A. Sloane.

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy .

Last modified October 21 05:29 EDT 2017. Contains 293679 sequences.