A352153 Smallest digit in the decimal expansion of 1/n, ignoring leading and trailing 0's.
1, 5, 3, 2, 2, 1, 1, 1, 1, 1, 0, 3, 0, 1, 6, 2, 0, 5, 0, 5, 0, 4, 0, 1, 4, 1, 0, 1, 0, 3, 0, 1, 0, 0, 1, 2, 0, 0, 0, 2, 0, 0, 0, 2, 2, 0, 0, 0, 0, 2, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0
Offset: 1
Examples
1/13 = 0.076923076923076923... with periodic part = '769230' (or '076923'), hence a(13) = 0. 1/14 = 0.0714285714285714285... with periodic part = '714285', hence a(14) = 1. 1/40 = 0.025 hence a(40) = 2.
Programs
-
Mathematica
f[n_] := Union[ Flatten[ RealDigits[ 1/n][[1]] ]]; Array[Min@ f@# &, 105]
Formula
a(n) = n iff n = 1 or n = 3.
a(10*n) = a(n).
a(10^n) = 1.
Comments