login
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

%I #10 Apr 27 2019 02:32:58

%S 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,

%T 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,

%U 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

%N 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.

%H K. Stern, <a href="/A165723/b165723.txt">Table of n, a(n) for n = 1..500</a>

%e 1/1 = 1.000 so a(1) = 0;

%e 1/4 = 0.250 so a(4) = 5;

%e 1/14 = 0.0714... so a(14) = 1;

%e 1/114 = 0.00877... so a(114) = 7.

%p 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

%K nonn,base,easy

%O 1,3

%A _Kyle Stern_, Sep 24 2009

%E More terms from _R. J. Mathar_, Sep 26 2009