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.

Showing 1-5 of 5 results.

A000052 1-digit numbers arranged in alphabetical order, then the 2-digit numbers arranged in alphabetical order, then the 3-digit numbers, etc.

Original entry on oeis.org

8, 5, 4, 9, 1, 7, 6, 3, 2, 0, 18, 80, 88, 85, 84, 89, 81, 87, 86, 83, 82, 11, 15, 50, 58, 55, 54, 59, 51, 57, 56, 53, 52, 40, 48, 45, 44, 49, 41, 47, 46, 43, 42, 14, 19, 90, 98, 95, 94, 99, 91, 97, 96, 93, 92, 17, 70, 78, 75, 74, 79, 71, 77, 76, 73, 72
Offset: 1

Views

Author

Keywords

Comments

This sequence uses standard US English names for numbers. - Daniel Forgues, May 11 2016
For example, standard US English writes out the number 101 as "one hundred one", whereas standard UK English writes it out as "one hundred and one" (see Links). - Jon E. Schoenfield, Dec 25 2016
Alphabetical order is with spaces removed/disregarded, else, as a first example, a(1003)=8018 ("eight thousand eighteen") would follow a(1004)=8800 ("eight thousand eight hundred") among others. - Michael S. Branicky, Aug 05 2021

Examples

			eight, five, four, nine, one, seven, six, three, two, zero, eighteen, etc.
Examples of spelling convention used for values above 99:
400: "four hundred"
726: "seven hundred twenty-six"
1992: "one thousand nine hundred ninety-two"
2202: "two thousand two hundred two"
101001: "one hundred one thousand one"
726726: "seven hundred twenty-six thousand seven hundred twenty-six"
101000001: "one hundred one million one"
		

Crossrefs

Cf. A001058.

Programs

  • Maple
    V:= [[$0..9],[$10..99],[$100..999]]:
    seq(op(V[i][sort(map(convert,V[i],english,'And'),
    output=permutation)]),i=1..3); # Robert Israel, Jun 17 2016
  • Mathematica
    Flatten@Join[{8, 5, 4, 9, 1, 7, 6, 3, 2, 0}, SortBy[Range[10^#, 10^(# + 1) - 1], StringReplace[IntegerName[#, "Words"], "," -> ""] &] & /@ Range[3]] (* Davin Park, Dec 25 2016 *)
  • Python
    from num2words import num2words
    def n2w(n):
      return num2words(n).replace(" and", "").replace(",", "").replace(" ", "")
    def agen(maxdigits):
      for d in range(1, maxdigits+1):
        yield from sorted(range(10**(d-1)-(d==1), 10**d), key=lambda x: n2w(x))
    print([an for an in agen(2)]) # Michael S. Branicky, Aug 05 2021

Extensions

Corrected by Davin Park, Dec 25 2016

A119796 Zero through ten in alphabetical order of English reverse spelling.

Original entry on oeis.org

3, 9, 1, 5, 10, 7, 0, 2, 4, 8, 6
Offset: 1

Views

Author

Jonathan Vos Post, Jul 30 2006

Keywords

Examples

			a(1) = 3 because EERHT comes alphabetically first.
a(2) = 9 because ENIN comes alphabetically second.
a(3) = 1 because ENO comes alphabetically third.
a(4) = 5 because EVIF comes alphabetically fourth.
		

Crossrefs

A119898 1-digit numbers arranged in alphabetical order of English spelling reversed, then the 2-digit numbers so arranged, then the 3-digit numbers, etc.

Original entry on oeis.org

3, 9, 1, 5, 7, 0, 2, 4, 8, 6, 93, 53, 83, 73, 23, 33, 43, 63, 99, 59, 89, 79, 29, 39, 49, 69, 91, 51, 81, 71, 21, 31, 41, 61, 95, 55, 85, 75, 25, 35, 45, 65, 12, 19, 15, 18, 17, 13, 14, 16, 10, 11, 97, 57, 87, 77, 27, 37, 47, 67, 92, 52, 82, 72, 22, 32, 42, 62, 94, 54, 84, 74, 24
Offset: 1

Views

Author

Jonathan Vos Post, Aug 01 2006

Keywords

Comments

Analog of A000052 where the alphabetical order is applied not to English name of integer but to the English name whose letters are then reversed.

Examples

			Eerht, Enin, Eno, Evif, Neves, Orez, Owt, Ruof, Thgie, Xis;
Eerhtytenin, Eerhtytfif, Eerhtythgie, Eerhtytneves, Eerhtytnewt, Eerhtytriht, Eerhtytrof, Eerhtytxis, Eninytenin, Eninytfif, Eninythgie, Eninytneves, Eninytnewt, Eninytriht, Eninytrof, Eninytxis, Enoytenin, Enoytfif, Enoythgie, Enoytneves, Enoytnewt, Enoytriht, Enoytrof, Enoytxis, Evifytenin, Evifytfif, ...
		

Crossrefs

Programs

  • Mathematica
    f[a_, b_] := Sort@ Table[{ StringReverse[ StringReplace[ IntegerName[h, "Words"], {"\[Hyphen]" -> ""}]], h}, {h, a, b}]; Last /@ Join[f[0, 9], f[10, 99]] (* Giovanni Resta, Jun 13 2016 *)

Extensions

Data and example corrected by Giovanni Resta, Jun 13 2016

A125506 Numbers with distinct digits in reverse alphabetical order (in English).

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 14, 15, 18, 19, 21, 23, 24, 25, 26, 27, 28, 29, 31, 34, 35, 36, 37, 38, 39, 45, 48, 58, 61, 64, 65, 67, 68, 69, 71, 74, 75, 78, 79, 94, 95, 98, 145, 148, 158, 194, 195, 198, 214, 215, 218, 219, 231, 234, 235, 236, 237, 238, 239, 245
Offset: 1

Views

Author

Tanya Khovanova, Jan 18 2007

Keywords

Comments

Largest term is 236719458.

Crossrefs

Cf. A053433 Numbers with distinct digits in alphabetical order (in English).
Cf. A001058.

Programs

  • Python
    from itertools import combinations
    afull = [0] + sorted(int("".join(t)) for d in range(1, 11) for t in combinations("236719458", d))
    print(afull[:64]) # Michael S. Branicky, Aug 18 2022

Extensions

a(47) and beyond from Michael S. Branicky, Aug 18 2022

A117361 1-digit numbers in reverse alphabetical order when written in French, then 2-digit numbers, ...

Original entry on oeis.org

0, 1, 3, 6, 7, 4, 9, 8, 2, 5, 23, 26, 27, 24, 29, 28, 21, 22, 25, 20, 33, 36, 37, 34, 39, 38, 31, 32, 35, 30, 13, 63
Offset: 0

Views

Author

Olivier Mengue (dolmen(AT)users.sourceforge.net), Apr 24 2006

Keywords

Comments

The last term specified is 63 (soixante-trois) because the sequence then diverges between French variations: the next term would be 73 (soixante-treize) in France, but 66 (soixante-six) in Belgium or Switzerland as 73 is spelled septante-trois in those countries.

Examples

			Zero, un, trois, six, sept, quatre, neuf, huit, deux, cinq, vingt-trois, vingt-six, vingt-sept, vingt-quatre, vingt-neuf, vingt-huit, vingt-et-un, vingt-deux, vingt-cinq, vingt, trente-trois, trente-six, trente-sept, trente-quatre, trente-neuf, trente-huit, trente-et-un, trente-deux, trente-cinq, trente, treize, soixante-trois.
		

Crossrefs

Cf. A001058.
Showing 1-5 of 5 results.