login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A021512
Decimal expansion of 1/508.
0
0, 0, 1, 9, 6, 8, 5, 0, 3, 9, 3, 7, 0, 0, 7, 8, 7, 4, 0, 1, 5, 7, 4, 8, 0, 3, 1, 4, 9, 6, 0, 6, 2, 9, 9, 2, 1, 2, 5, 9, 8, 4, 2, 5, 1, 9, 6, 8, 5, 0, 3, 9, 3, 7, 0, 0, 7, 8, 7, 4, 0, 1, 5, 7, 4, 8, 0, 3, 1, 4, 9, 6, 0, 6, 2, 9, 9, 2, 1, 2, 5, 9, 8, 4, 2, 5, 1, 9, 6, 8, 5, 0, 3, 9, 3, 7, 0, 0, 7
OFFSET
0,4
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,1).
FORMULA
From Chai Wah Wu, Oct 23 2018: (Start)
a(n) = a(n-1) - a(n-21) + a(n-22) for n > 23.
G.f.: x^2*(-5*x^21 + 3*x^20 - 2*x^19 - 4*x^18 - x^17 + 4*x^16 + 3*x^15 + x^14 - x^13 - 7*x^12 + 7*x^10 - 4*x^9 + 6*x^8 - 6*x^7 - 3*x^6 + 5*x^5 + 3*x^4 - 2*x^3 + 3*x^2 - 8*x - 1)/(x^22 - x^21 + x - 1). (End)
MATHEMATICA
Join[{0, 0}, RealDigits[1/508, 10, 120][[1]]] (* or *) PadRight[{0, 0}, 120, {2, 5, 1, 9, 6, 8, 5, 0, 3, 9, 3, 7, 0, 0, 7, 8, 7, 4, 0, 1, 5, 7, 4, 8, 0, 3, 1, 4, 9, 6, 0, 6, 2, 9, 9, 2, 1, 2, 5, 9, 8, 4}] (* Harvey P. Dale, Oct 19 2018 *)
CROSSREFS
Sequence in context: A011194 A235916 A198567 * A154205 A258407 A138500
KEYWORD
nonn,cons
AUTHOR
STATUS
approved