login
Positive numbers whose Spanish names do not include repeated letters.
1

%I #8 Jun 08 2022 23:17:45

%S 1,2,3,4,10,11,12,15,80,100,1000,1001,1002,1003,1004,1011,1012,1080,

%T 2000,3000,3001,4000,11000,12000,80000

%N Positive numbers whose Spanish names do not include repeated letters.

%o (Python)

%o from num2words import num2words as n2w

%o def letters(n):

%o return "".join(c for c in n2w(n, lang='es') if c.isalpha())

%o def ok(n):

%o w = letters(n)

%o return len(w) == len(set(w))

%o print([k for k in range(1, 100000) if ok(k)]) # _Michael S. Branicky_, Jun 08 2022

%Y Cf. A059916, A354681.

%K fini,full,nonn,word

%O 1,2

%A _Rodolfo Kurchan_, Apr 24 2006