login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A081750 Simple continued fraction of 2*e. 4
5, 2, 3, 2, 3, 1, 2, 1, 3, 4, 3, 1, 4, 1, 3, 6, 3, 1, 6, 1, 3, 8, 3, 1, 8, 1, 3, 10, 3, 1, 10, 1, 3, 12, 3, 1, 12, 1, 3, 14, 3, 1, 14, 1, 3, 16, 3, 1, 16, 1, 3, 18, 3, 1, 18, 1, 3, 20, 3, 1, 20, 1, 3, 22, 3, 1, 22, 1, 3, 24, 3, 1, 24, 1, 3, 26, 3, 1, 26, 1, 3, 28, 3, 1, 28, 1, 3, 30, 3, 1, 30, 1, 3, 32 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Decimal expansion is A019762. - Michael Somos, May 07 2012
LINKS
FORMULA
First 5 terms are 5, 2, 3, 2, 3.
For k >= 1, a(6k)=1; a(6k+1)=2k; a(6k+2)=1; a(6k+3)=3; a(6k+4)=2k+2; a(6k+5)=3.
EXAMPLE
2*e = 5 + 1 / (2 + 1 / (3 + 1 / (2 + 1 / (3 + 1 / (1 + ...))))). - Michael Somos, May 07 2012
MATHEMATICA
ContinuedFraction[ 2E, 94] (* Robert G. Wilson v, May 07 2012 *)
PROG
(PARI) A081750(n) = if(1==n, 5, if(n<6, 2+(n%2), my(k=n\6, r=n%6); if(0==r || 2==r, 1, if(1==r, 2*k, if(n%2, 3, 2*(k+1)))))); \\ Antti Karttunen, Feb 20 2023
CROSSREFS
Sequence in context: A214064 A343486 A098584 * A291358 A059650 A112244
KEYWORD
cofr,easy,nonn
AUTHOR
Benoit Cloitre, Apr 08 2003
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 2 10:17 EDT 2024. Contains 372196 sequences. (Running on oeis4.)