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.

A005606 Position of first letter of n (in English) in alphabet.

Original entry on oeis.org

26, 15, 20, 20, 6, 6, 19, 19, 5, 14, 20, 5, 20, 20, 6, 6, 19, 19, 5, 14, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19
Offset: 0

Views

Author

Keywords

Comments

English name for n begins with a(n)-th letter.

Examples

			'One' begins with 'O' and 'O' is the fifteenth letter hence a(1)=15.
		

References

  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Programs

  • Mathematica
    Table[LetterNumber[Characters[IntegerName[n,"Words"]][[1]]],{n,0,80}] (* Harvey P. Dale, Jun 06 2016 *)
  • Python
    from num2words import num2words
    def a(n): return ord(num2words(n)[0]) - 96
    print([a(n) for n in range(78)]) # Michael S. Branicky, Jul 12 2022

Extensions

More terms from Larry Reeves (larryr(AT)acm.org), Oct 02 2000