A368828 Numbers with the same number of zeros and letters O in their English name.
0, 3, 5, 6, 7, 8, 9, 11, 12, 13, 15, 16, 17, 18, 19, 23, 25, 26, 27, 28, 29, 33, 35, 36, 37, 38, 39, 40, 53, 55, 56, 57, 58, 59, 63, 65, 66, 67, 68, 69, 73, 75, 76, 77, 78, 79, 83, 85, 86, 87, 88, 89, 93, 95, 96, 97, 98, 99, 103, 105, 106, 107, 108, 109, 110, 120, 130, 150, 160, 170, 180, 190, 203, 205, 206, 207
Offset: 1
Examples
0 = zerO (one 0 and one O), 3 = three (no 0 and no O), 5 = five (no 0 and no O), 6 = six (no 0 and no O), 7 = seven (no 0 and no O), etc. 1 is not in the sequence as (1 = One) is a contradiction, as are (2 = twO), (4 = fOur), (10 = ten), etc.
Links
- Michael S. Branicky, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
Select[Range[0,207], Count[IntegerDigits[#],0] == Count[Characters[IntegerName[#]], "o"]&] (* Stefano Spezia, Jan 07 2024 *)
-
Python
from num2words import num2words def ok(n): return str(n).count('0') == num2words(n).count('o') print([k for k in range(208) if ok(k)]) # Michael S. Branicky, Jan 07 2024
Extensions
a(36)-a(38) corrected by Stefano Spezia, Jan 07 2024