A372106 A370972 terms composed of nine distinct digits which may repeat.
1476395008, 116508327936, 505627938816, 640532803911, 1207460451879, 1429150367744, 1458956660623, 3292564845031, 3820372951296, 5056734498816, 6784304541696, 8090702381056, 9095331446784, 10757095489536, 10973607685048, 13505488366293, 14913065975808, 38203732951296
Offset: 1
Examples
10973607685048 = 22222*22222*22222 is in the sequence because it has nine distinct digits and may be factored using only its missing digit.
Links
- Michael S. Branicky, Table of n, a(n) for n = 1..10000 (terms 1..1016 from Hans Havermann)
- Michael S. Branicky and Hans Havermann, Table of n, a(n) for n = 1..10000, fully factored
Programs
-
Python
import heapq from itertools import islice def agen(): # generator of terms allowed = [2, 3, 4, 7, 8, 9] v, oldt, h, repunits, bigr = 1, 0, list((d, d) for d in allowed), [1], 1 while True: v, d = heapq.heappop(h) if (v, d) != oldt: s = set(str(v)) if len(s) == 9 and str(d) not in s: yield v oldt = (v, d) while v > bigr: bigr = 10*bigr + 1 repunits.append(bigr) for c in allowed: heapq.heappush(h, (bigr*c, c)) for r in repunits: heapq.heappush(h, (v*d*r, d)) print(list(islice(agen(), 100))) # Michael S. Branicky, Apr 19 2024
Comments