login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A354521 a(n) is the position of the first letter in the US English name of n that can also be found in the English name of n+1. 0
2, 1, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
Spaces and punctuation are ignored when determining the position of the letter.
a(n) is well-defined as n and n+1 always share a letter (see formulas). - Michael S. Branicky, Aug 20 2022
LINKS
FORMULA
For n > 1000, a(n) = 1 unless n = b + 1000^e - 1 (for e >= 1, 1 <= b <= 999) in which case a(n) = a(b). Subsequently, 1 <= a(n) <= 3. - Michael S. Branicky, Aug 20 2022
EXAMPLE
For n = 4, a(4) = 1 since the 1st letter of 'four' can also be found in 'five'.
For n = 59, a(59) = 2 since the 2nd letter of 'fifty-nine' can be found in 'sixty'.
PROG
(Python)
from num2words import num2words as n2w
def a(i):
w1 = n2w(i).replace(' ', '').replace('-', '')
w2 = n2w(i+1).replace(' ', '').replace('-', '')
for j in range(len(w1)):
if w1[j] in w2:
return j+1
CROSSREFS
Sequence in context: A307641 A342255 A112377 * A277760 A371572 A127704
KEYWORD
nonn,easy,word
AUTHOR
Ray G. Opao, Aug 16 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 17 18:06 EDT 2024. Contains 374377 sequences. (Running on oeis4.)