A386501 Numbers k divisible by A004719(k), excluding trivial cases.
105, 108, 405, 1001, 1005, 1008, 1020, 2002, 2025, 2040, 2050, 3003, 3060, 4004, 4005, 4080, 5005, 6006, 6075, 7007, 7050, 8008, 9009, 10005, 10008, 10020, 10032, 10065, 10098, 10101, 10125, 10206, 10250, 16005, 19008, 20007, 20025, 20040, 20050
Offset: 1
Examples
A004719(108)=18, 108/18=6. A004719(9009)=99, 9009/99=91. A004719(2040)=24, 2040/24=85, 2040 is nontrivial because 204/24=17/2. 50 is trivial because 50/10 = 5, and 5 is trivial because A004719(5)=5.
Programs
-
Python
def removeZeros(number): stringNum = str(number) stringNum = stringNum.replace("0", "") return int(stringNum) for x in range(1, 100000): smallInt = removeZeros(x) if smallInt == x: continue if x % smallInt == 0: if x % 10 == 0: if (x//10) % removeZeros(x//10) == 0: continue print(x)
Comments