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!)
A158570 a(n) = 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; text; internal format)
OFFSET
1,2
COMMENTS
Repeats with period 8.
Also the decimal expansion of the constant 124112510/99999999. - R. J. Mathar, Apr 02 2009
LINKS
FORMULA
a(n) = 1 if n == 0,1,4,5 (mod 8),
2 if n == 2,6 (mod 8),
4 if n == 3 (mod 8),
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)). - R. J. Mathar, Apr 02 2009
MATHEMATICA
PadRight[{}, 120, {1, 2, 4, 1, 1, 2, 5, 1}] (* Harvey P. Dale, May 05 2020 *)
CROSSREFS
Sequence in context: A336434 A007738 A186520 * A295224 A074749 A194524
KEYWORD
nonn,easy
AUTHOR
Vladimir Shevelev, Mar 21 2009
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 April 23 22:36 EDT 2024. Contains 371917 sequences. (Running on oeis4.)