Permuted multiples
Problem 52
It can be seen that the number, 125874, and its double, 251748, contain exactly the same digits, but in a different order.
Find the smallest positive integer, x, such that 2x, 3x, 4x, 5x, and 6x, contain the same digits.
def run():
for d in range(5, 6):
b = 10**d
for number in range(b, int((b * 10) / 6)):
x = list(str(number))
x.sort()
x2 = list(str(number * 2))
x2.sort()
x3 = list(str(number * 3))
x3.sort()
x4 = list(str(number * 4))
x4.sort()
x5 = list(str(number * 5))
x5.sort()
x6 = list(str(number * 6))
x6.sort()
if x == x2 == x3 == x4 == x5 == x6:
return number