cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A123267 T is the first, sixth, fourteenth, etc. character in this sentence. (In this version, letters, spaces, commas and hyphens all count.)

This page as a plain text file.
%I A123267 #17 Mar 18 2022 13:08:26
%S A123267 1,6,14,20,28,32,36,40,43,47,51,58,62,66,77,81,87,94,97,104,107,117,
%T A123267 125,132,139,145,152,159,173,179,188,196,204,211,218,226,234,241,249,
%U A123267 257,277,298,319,323,339,343,349,365,369,392,396,402,421,427,446,472
%N A123267 T is the first, sixth, fourteenth, etc. character in this sentence. (In this version, letters, spaces, commas and hyphens all count.)
%H A123267 Michael S. Branicky, <a href="/A123267/b123267.txt">Table of n, a(n) for n = 1..10000</a>
%e A123267   0123456789
%e A123267 0  T is the
%e A123267 1 first, six
%e A123267 2 th, fourte
%e A123267 3 enth, twen
%e A123267 4 tieth, twe
%e A123267 5 nty-eighth
%e A123267 6 , thirty-s
%e A123267 7 econd, thi
%e A123267 8 rty-sixth,
%e A123267 9  fortieth,
%e A123267 0  forty-thi
%e A123267 1 rd, forty-
%o A123267 (Python)
%o A123267 from num2words import num2words
%o A123267 from itertools import islice
%o A123267 def n2w(n): return num2words(n, ordinal=True).replace(" and", "")
%o A123267 def agen(): # generator of terms
%o A123267     s, idx = "t is the ", 0
%o A123267     while True:
%o A123267         idx = 1 + s.index("t", idx)
%o A123267         yield idx
%o A123267         s += n2w(idx) + ", "
%o A123267 print(list(islice(agen(), 56))) # _Michael S. Branicky_, Mar 18 2022
%Y A123267 Cf. A005224.
%K A123267 nonn,word
%O A123267 1,2
%A A123267 _J. Lowell_, Oct 09 2006
%E A123267 a(7)-a(22) from _R. J. Mathar_, Nov 10 2006
%E A123267 a(23) and beyond from _Michael S. Branicky_, Mar 18 2022