The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A021408 Decimal expansion of 1/404. 1
0, 0, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2, 4, 7, 5, 2 (list; constant; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
After the first two terms, a(n) is periodic with period 4: repeat [2, 4, 7, 5]. - Wesley Ivan Hurt, Jul 10 2016
LINKS
FORMULA
From Wesley Ivan Hurt, Jul 10 2016: (Start)
G.f.: x^2*(2+2*x+5*x^2)/(1-x+x^2-x^3).
a(n) = a(n-1) - a(n-2) + a(n-3) for n>4, a(n) = a(n-4) for n>5.
a(n) = (9 + 5*cos(n*Pi/2) + sin(n*Pi/2))/2 for n>1. (End)
EXAMPLE
0.0024752475247524752475247...
MAPLE
Digits:=100: evalf(1/404); # Wesley Ivan Hurt, Jul 10 2016
MATHEMATICA
Join[{0, 0}, RealDigits[1/404, 10, 120][[1]]] (* or *) PadRight[{0, 0}, 120, {7, 5, 2, 4}] (* Harvey P. Dale, May 18 2012 *)
CoefficientList[Series[x^2*(2 + 2*x + 5*x^2)/(1 - x + x^2 - x^3), {x, 0, 30}], x] (* Wesley Ivan Hurt, Jul 10 2016 *)
PROG
(Magma) [0, 0] cat &cat [[2, 4, 7, 5]^^30]; // Wesley Ivan Hurt, Jul 10 2016
CROSSREFS
Sequence in context: A167280 A236629 A019966 * A011178 A136790 A073158
KEYWORD
nonn,cons,easy
AUTHOR
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 20 14:08 EDT 2024. Contains 372717 sequences. (Running on oeis4.)