OFFSET
3,1
COMMENTS
The GCHQ reference uses British English (including "and"). The disagreements are at a(14)-a(16), which the book lists as 70000000, 15000, 14000. Furthermore, the book lists a(13) as impossible.
REFERENCES
GCHQ, The GCHQ Puzzle Book, Penguin, 2016 (see p. 47).
LINKS
Michael S. Branicky, Table of n, a(n) for n = 3..100 (terms 3..69 from Jason Bard)
FORMULA
a(n) >= A134629(n). - Michael S. Branicky, May 21 2025
MATHEMATICA
mmax = 10^10; Do[m = n; While[StringLength[StringDelete[IntegerName[m, "Words"], {" ", "-", "\[Hyphen]", ", "}]] != n, m += n; If[m > mmax, m = 0; Break[]]]; Print[m], {n, 3, 43}]
PROG
(Python)
from num2words import num2words
from itertools import count, islice
def b(n): return sum(1 for c in num2words(n).replace(" and", "") if c.isalpha())
def a(n): return next(k for k in count(n, n) if b(k) == n)
print([a(n) for n in range(3, 13)]) # Michael S. Branicky, May 20 2025
CROSSREFS
KEYWORD
nonn,word
AUTHOR
Jason Bard, May 20 2025
STATUS
approved
