A362120 a(n) is the smallest positive number whose American English name has the letter "e" in the n-th position.
8, 7, 1, 3, 3, 12, 13, 17, 21, 23, 23, 73, 101, 103, 103, 112, 113, 117, 121, 123, 123, 173, 323, 373, 1103, 1103, 1112, 1113, 1117, 1121, 1123, 1123, 1173, 1323, 1373, 3323, 3373, 11373, 13323, 13373, 17373, 23323, 23373, 73373, 101373, 103323, 103373, 111373
Offset: 1
References
- GCHQ, The GCHQ Puzzle Book, Penguin, 2016. See page 70.
Programs
-
Python
from itertools import count from num2words import num2words 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