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”).

A165723
The (d+1)th digit after the decimal point in the decimal representation of 1/n, where d is the number of digits of n.
1
0, 0, 3, 5, 0, 6, 4, 2, 1, 0, 0, 3, 6, 1, 6, 2, 8, 5, 2, 0, 7, 5, 3, 1, 0, 8, 7, 5, 4, 3, 2, 1, 0, 9, 8, 7, 7, 6, 5, 5, 4, 3, 3, 2, 2, 1, 1, 0, 0, 0, 9, 9, 8, 8, 8, 7, 7, 7, 6, 6, 6, 6, 5, 5, 5, 5, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
OFFSET
1,3
EXAMPLE
1/1 = 1.000 so a(1) = 0;
1/4 = 0.250 so a(4) = 5;
1/14 = 0.0714... so a(14) = 1;
1/114 = 0.00877... so a(114) = 7.
MAPLE
A055642 := proc(n) max(1, ilog10(n)+1) ; end: A165723 := proc(n) local d; d := A055642(n) ; floor(10^(d+1)/n) mod 10 ; end: seq(A165723(n), n=1..100) ; R. J. Mathar, Sep 26 2009
CROSSREFS
Sequence in context: A144541 A100609 A104866 * A257407 A224932 A094771
KEYWORD
nonn,base,easy
AUTHOR
Kyle Stern, Sep 24 2009
EXTENSIONS
More terms from R. J. Mathar, Sep 26 2009
STATUS
approved