A352155 Numbers m such that the smallest digit in the decimal expansion of 1/m is 1, ignoring leading and trailing 0's.
1, 6, 7, 8, 9, 10, 14, 24, 26, 28, 32, 35, 54, 55, 56, 60, 64, 65, 66, 70, 72, 74, 75, 80, 82, 88, 90, 100, 104, 112, 128, 140, 175, 176, 224, 240, 260, 280, 320, 350, 432, 448, 468, 504, 512, 528, 540, 548, 550, 560, 572, 576, 584, 592, 600, 616, 625, 640, 650, 660
Offset: 1
Examples
m = 14 is a term since 1/14 = 0.0714285714285714285... and the smallest term after the leading 0 is 1. m = 240 is a term since 1/240 = 0.00416666666... and the smallest term after the leading 0's is 1. m = 888 is a term since 1/888 = 0.001126126126... and the smallest term after the leading 0's is 1.
Crossrefs
Programs
-
Mathematica
f[n_] := Union[ Flatten[ RealDigits[ 1/n][[1]] ]]; Select[ Range@ 1100, Min@ f@# == 1 &]
-
Python
from itertools import count, islice from sympy import multiplicity, n_order def A352155_gen(startvalue=1): # generator of terms >= startvalue for n in count(max(startvalue,1)): m2, m5 = multiplicity(2,n), multiplicity(5,n) k, m = 10**max(m2,m5), 10**(t := n_order(10,n//2**m2//5**m5))-1 c = k//n s = str(m*k//n-c*m).zfill(t) if s == '0' and min(str(c)) == '1': yield n elif '0' not in s and min(str(c).lstrip('0')+s) == '1': yield n A352155_list = list(islice(A352155_gen(),20)) # Chai Wah Wu, Mar 28 2022
Formula
A352153(a(n)) = 1.
Comments