OFFSET
1,1
EXAMPLE
The first four multiples of 531 are 531, 1062, 1593, and 2124. All of them contain digit 1.
MATHEMATICA
Select[Range[10000], Length[ Position[IntegerDigits[#], 1]] > 0 && Length[ Position[IntegerDigits[2 #], 1]] > 0 && Length[ Position[IntegerDigits[3 #], 1]] > 0 && Length[ Position[IntegerDigits[4 #], 1]] > 0 &]
PROG
(Python)
def ok(n): return all('1' in str(k*n) for k in [1, 2, 3, 4])
print(list(filter(ok, range(5155)))) # Michael S. Branicky, Jun 17 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Tanya Khovanova, Jun 17 2021
STATUS
approved