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!)
A123267 T is the first, sixth, fourteenth, etc. character in this sentence. (In this version, letters, spaces, commas and hyphens all count.) 1
1, 6, 14, 20, 28, 32, 36, 40, 43, 47, 51, 58, 62, 66, 77, 81, 87, 94, 97, 104, 107, 117, 125, 132, 139, 145, 152, 159, 173, 179, 188, 196, 204, 211, 218, 226, 234, 241, 249, 257, 277, 298, 319, 323, 339, 343, 349, 365, 369, 392, 396, 402, 421, 427, 446, 472 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Michael S. Branicky, Table of n, a(n) for n = 1..10000

EXAMPLE

  0123456789

0  T is the

1 first, six

2 th, fourte

3 enth, twen

4 tieth, twe

5 nty-eighth

6 , thirty-s

7 econd, thi

8 rty-sixth,

9  fortieth,

0  forty-thi

1 rd, forty-

PROG

(Python)

from num2words import num2words

from itertools import islice

def n2w(n): return num2words(n, ordinal=True).replace(" and", "")

def agen(): # generator of terms

    s, idx = "t is the ", 0

    while True:

        idx = 1 + s.index("t", idx)

        yield idx

        s += n2w(idx) + ", "

print(list(islice(agen(), 56))) # Michael S. Branicky, Mar 18 2022

CROSSREFS

Cf. A005224.

Sequence in context: A175678 A173870 A101567 * A236928 A064708 A064709

Adjacent sequences:  A123264 A123265 A123266 * A123268 A123269 A123270

KEYWORD

nonn,word

AUTHOR

J. Lowell, Oct 09 2006

EXTENSIONS

a(7)-a(22) from R. J. Mathar, Nov 10 2006

a(23) and beyond from Michael S. Branicky, Mar 18 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 September 28 14:44 EDT 2022. Contains 357073 sequences. (Running on oeis4.)