A373317 Numbers which are their own imbalance when written in English (see the definition of the imbalance in the Comments section).
17, 25, 100, 115, 116, 144, 157, 182, 184, 186, 191, 193, 199, 223, 236
Offset: 1
Examples
17 has an imbalance of 17 units when cut between V and E: S+E+V = 46 and E+N+T+E+E+N = 63. We have indeed 63 - 46 = 17. 25 has an imbalance of 25 units when cut between N and T: T+W+E+N = 62 and T+Y+F+I+V+E = 87. We have indeed 87 - 62 = 25. The cuts in the integers below are made using the sign ——: SEV——ENTEEN (46——63 = 17) TWEN——TYFIVE (87——62 = 25) ONEHUNDRE——D (104——4 = 100) ON——EHUNDREDFIFTEEN (29——144 = 115) ONEHUNDREDSIX——TEEN (160——44 = 116) ONEHUNDREDFORTYF——OUR (198——54 = 144) ONEHUNDREDFIFTYSE——VEN (198——41 = 157) ON——EHUNDREDEIGHTYTWO (29——211 = 182) ON——EHUNDREDEIGHTYFOUR (29——213 = 184) ONEHUNDREDEIGHTYSI——X (210——24 = 186) ONEHUNDREDNINETYO——NE (210——19 = 191) ON——EHUNDREDNINETYTHREE (29——222 = 193) ONEHUNDREDNINETYNI——NE (218——19 = 199) TWOHUNDREDTWENTYT——HREE (259——36 = 223) TWOHUNDREDTHIRTYSI——X (260——24 = 236). No integer has been found that could be cut in more than one way.
Links
- Wikipedia, Names of Large Numbers
Programs
-
Python
from num2words import num2words def n2w(n): return "".join(c for c in num2words(n).replace(" and", "") if c.isalpha()) def ok(n): d = [ord(c) - ord('A') + 1 for c in n2w(n).upper()] if sum(d) < n: return False return any(abs(sum(d[:i])-sum(d[i:])) == n for i in range(1, len(d))) print([k for k in range(1005) if ok(k)]) # Michael S. Branicky, Jun 03 2024
Comments