OFFSET
1,2
COMMENTS
This sequence takes into account the numbers written as words; for example, "fifty-seven" contains three vowels, so 3 is added to 57 to create the next term. The word "and" is not included in US English (cf. A158352), so 115 is written as "one hundred fifteen". This sequence is puzzling as it shares its first 6 terms with the odd numbers before jumping to 14, then 18. When only given the first 8 terms it can be very difficult to spot the rule.
Assumes "y" in e.g. "fifty" is not a vowel. - Chai Wah Wu, Dec 17 2018
FORMULA
a(n) = A139282(n) for n >= 2. - Chai Wah Wu, Dec 17 2018
MATHEMATICA
vowelCount[n_] := StringCount[IntegerName[n, "Words"], {"a", "e", "i", "o", "u"}]; f[n_] := n + vowelCount[n]; NestList[f, 1, 100] (* Amiram Eldar, Dec 10 2018 *)
PROG
(Python 3.3)
from itertools import accumulate, repeat
from num2words import num2words
A321676_list = list(accumulate(repeat(1, 100), lambda x, _ : x+sum(num2words(x).count(d) for d in 'aeiou'))) # Chai Wah Wu, Dec 17 2018
CROSSREFS
KEYWORD
nonn,word,easy
AUTHOR
Andrew Toothill, Dec 02 2018
EXTENSIONS
More terms from Amiram Eldar, Dec 10 2018
STATUS
approved