login
a(n) is the smallest positive number whose American English name has the letter "e" in the n-th position.
4

%I #11 Apr 21 2023 11:37:54

%S 8,7,1,3,3,12,13,17,21,23,23,73,101,103,103,112,113,117,121,123,123,

%T 173,323,373,1103,1103,1112,1113,1117,1121,1123,1123,1173,1323,1373,

%U 3323,3373,11373,13323,13373,17373,23323,23373,73373,101373,103323,103373,111373

%N a(n) is the smallest positive number whose American English name has the letter "e" in the n-th position.

%D GCHQ, The GCHQ Puzzle Book, Penguin, 2016. See page 70.

%o (Python)

%o from itertools import count

%o from num2words import num2words

%o def A362120(n): return next(filter(lambda k:len(s:=num2words(k).replace('-','').replace(',','').replace(' and ','').replace(' ',''))>=n and s[n-1]=='e',count(1))) # _Chai Wah Wu_, Apr 21 2023

%Y See A164790, A362121, A362122 for other versions.

%K nonn,word

%O 1,1

%A _N. J. A. Sloane_, Apr 20 2023.