A117383 Positive numbers whose Spanish names do not include repeated letters.
1, 2, 3, 4, 10, 11, 12, 15, 80, 100, 1000, 1001, 1002, 1003, 1004, 1011, 1012, 1080, 2000, 3000, 3001, 4000, 11000, 12000, 80000
Offset: 1
Programs
-
Python
from num2words import num2words as n2w def letters(n): return "".join(c for c in n2w(n, lang='es') if c.isalpha()) def ok(n): w = letters(n) return len(w) == len(set(w)) print([k for k in range(1, 100000) if ok(k)]) # Michael S. Branicky, Jun 08 2022