#! /usr/bin/env python3 """ pe52.py https://mind.kittttttan.info/py/pe52 """ def sd(n): digit = set(list(str(n))) for m in range(2, 7): if set(list(str(n * m))) != digit: return False return True def pe52(): """ Find the smallest positive integer, x, such that 2x, 3x, 4x, 5x, and 6x, contain the same digits in some order. """ res = False for i in range(100008, 200000, 9): if sd(i): res = i break print(res) if __name__ == "__main__": pe52()