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.

A108017 Position of integer n in the list of first n natural numbers written out in English (without "and") and arranged in alphabetical order.

This page as a plain text file.
%I A108017 #8 Jan 03 2019 06:29:45
%S A108017 1,2,2,1,1,4,4,1,4,8,2,11,10,5,3,11,10,2,9,19,21,22,22,21,21,24,24,21,
%T A108017 24,16,17,18,18,17,20,20,17,20,5,6,7,7,6,6,9,9,6,9,4,5,6,6,5,5,8,8,5,
%U A108017 8,33,34,35,35,34,34,37,37,34,37,32,33,34,34,33,33,36,36,33,36,2,3,4,4,3
%N A108017 Position of integer n in the list of first n natural numbers written out in English (without "and") and arranged in alphabetical order.
%e A108017 We have a(19)=9 because of the ordered list: EIGHT, EIGHTEEN, ELEVEN, FIFTEEN, FIVE, FOUR, FOURTEEN, NINE, NINETEEN, ..., TWELVE, TWO.
%o A108017 (PARI) lista() = {my(v = ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen", "twenty"], vs); for (i=1, #v, vp = vector(i, k, v[k]); vs = vecsort(vp); for (k=1, #vp, if (vs[k] == v[i], print1(k, ", "); break);););} \\ _Michel Marcus_, Jan 03 2019
%Y A108017 Cf. A214095 (in French).
%K A108017 nonn,word
%O A108017 1,2
%A A108017 _Lekraj Beedassy_, May 31 2005