proposed
approved
proposed
approved
editing
proposed
reviewed
approved
proposed
reviewed
editing
proposed
(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
approved
editing
proposed
approved
editing
proposed
Numbers m such that the smallest digit in the decimal expansion of 1/m is 1, ignoring leading and trailing 0's.
Trailing 0's are also not considered, otherwise numbers of the form 2^i*5^j with i, j >= 0, apart from 1 (A003592) would be terms.
proposed
editing