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.

A029722 Smallest positive integer containing the n-th letter of the alphabet (in US English), or -1 if no such integer exists.

Original entry on oeis.org

1000, 1000000000, 1000000000000000000000000000, 100, 1, 4, 8, 3, 5, -1, -1, 11, 1000000, 1, 1, 1000000000000000000000000, 1000000000000000, 3, 6, 2, 4, 5, 2, 6, 20, -1
Offset: 1

Views

Author

Anonymous submission

Keywords

Comments

This uses the short scale for the names of large numbers. - Ken Takusagawa, Oct 11 2016
In British English, a(1) is 101. - Paul Duckett, Apr 23 2022

Examples

			C first occurs in "octillion".
		

Crossrefs

Differs from A111098 because "zero" is not permitted.
Cf. A114181.

Programs

  • Mathematica
    alphabet={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
    candidates=AppendTo[AppendTo[Range[19],Table[10*i,{i,2,10}]],Table[10^i,{i,3,63,3}]]//Flatten//Quiet;
    f[10]=f[11]=f[26]=-1; f[n_]:=Module[{k=1},
    While[StringContainsQ[ToString[IntegerName[candidates[[k]],"Words"]],alphabet[[n]]]!=True,k++];candidates[[k]]];
    f/@Range[26] (* Ivan N. Ianakiev, Apr 10 2018 *)

Extensions

a(5) corrected by Donovan Johnson, Dec 08 2004
Edited: Definition extended, "octillian" corrected, link and cross-reference provided; and sequence completed by Rick L. Shepherd, Aug 29 2009
Definition clarified by Paul Duckett, Apr 23 2022