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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A158570 A007814((2n-1)!!+1) 1
1, 2, 4, 1, 1, 2, 5, 1, 1, 2, 4, 1, 1, 2, 5, 1, 1, 2, 4, 1, 1, 2, 5, 1, 1, 2, 4, 1, 1, 2, 5, 1, 1, 2, 4, 1, 1, 2, 5, 1, 1, 2, 4, 1, 1, 2, 5, 1, 1, 2, 4, 1, 1, 2, 5, 1, 1, 2, 4, 1, 1, 2, 5, 1, 1, 2, 4, 1, 1, 2, 5, 1, 1, 2, 4, 1, 1, 2, 5, 1, 1, 2, 4, 1, 1, 2, 5, 1, 1, 2, 4, 1, 1, 2, 5, 1, 1, 2, 4, 1, 1, 2, 5, 1, 1 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

COMMENTS

It is a periodic sequence of period 8.

Also the decimal expansion of the constant 124112510/99999999. [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Apr 02 2009]

Terms of the simple continued fraction of 399/[5*sqrt(5595)-99]. [From Paolo P. Lava (paoloplava(AT)gmail.com), Aug 05 2009]

FORMULA

a(n)=1, if n==0,1,4,5 mod 8; a(n)=2, if n==2,6 mod 8; a(n)=4, if n==3 mod 8; a(n)=5, if n==7 mod 8.

G.f.: -x*(1+2*x+4*x^2+x^3+x^4+2*x^5+5*x^6+x^7)/((x-1)*(1+x)*(x^2+1)*(x^4+1)) [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Apr 02 2009]

a(n)=(1/224)*{17*(n mod 8)+129*[(n+1) mod 8]-67*[(n+2) mod 8]-11*[(n+3) mod 8]+17*[(n+4) mod 8]+101*[(n+5) mod 8]-39*[(n+6) mod 8]-11*[(n+7) mod 8]}, with n>=0 [From Paolo P. Lava (paoloplava(AT)gmail.com), Mar 30 2009]

CROSSREFS

A007814, A001147

Sequence in context: A188348 A007738 A186520 * A074749 A194524 A117136

Adjacent sequences:  A158567 A158568 A158569 * A158571 A158572 A158573

KEYWORD

nonn

AUTHOR

Vladimir Shevelev (shevelev(AT)bgu.ac.il), Mar 21 2009

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

Content is available under The OEIS End-User License Agreement .

Last modified February 17 11:30 EST 2012. Contains 206011 sequences.