login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A121305 Value of Roman numeral embedded in English name of n, or 0 if no such value exists. 2

%I #21 Sep 26 2019 11:02:08

%S 0,0,0,0,0,4,9,5,1,1,0,55,55,1,0,1,9,5,1,1,0,0,0,0,0,4,9,5,1,1,1,1,1,

%T 1,1,0,0,4,2,2,0,0,0,0,0,4,9,5,1,1,1,1,1,1,1,0,0,4,2,2,9,0,0,0,0,0,0,

%U 0,0,0,5,5,5,5,5,0,0,0,6,6,1,1,1,1,1,0,0,4,2,2,1,1,1,1,1,0,0,4,2,2,0

%N Value of Roman numeral embedded in English name of n, or 0 if no such value exists.

%C Not well-defined! A002904 is the main entry for this sequence. - _N. J. A. Sloane_, Sep 28 2011.

%C There are a finite number of nonzero values because "hunDreD" and "mILLIon" and "bILLIon" and "trILLIon" and so forth yield non-well-formed Roman numerals. The largest n such that a(n) is nonzero is 94044 maps to "nInetyfour thousanD fortyfour" maps to "ID" maps to 499.

%C Allowing a(94044) = 499 because of "ID" speaks to the non-standard usage (499 = "CDXCIX") that makes this sequence, as mentioned above, not necessarily well-defined. If "ID" is ok, why not "IIV" for a(35)? If we take Mathematica's RomanNumeral conversion as standard (for integers 1-4999; starting with 5000 we generate overbars), then there are 1411 nonzero entries up to and including a(44099) = 502. Specifically, I (30 solutions), II (8), IV (7), V (9), VI (2), IX (9), LV (2), D (272), DI (480), DII (128), DIV (112), DV (144), DVI (32), DIX (144), and DLV (32). - _Hans Havermann_, May 06 2019

%H Brady Haran and N. J. A. Sloane, <a href="https://www.youtube.com/watch?v=OeGSQggDkxI">What Number Comes Next?</a> (2018), Numberphile video

%F Take English name of n as string of characters, eliminate all spaces, hyphens and letters other than I, V, X, L, C, D, M. Interpret remaining string as a Roman numeral, assigning 0 if the string is not well-formed and a(n) is well-formed.

%e a(5) = 4 because 5 maps to "five" maps to "fIVe" maps to "IV" maps to 4.

%e a(6) = 9 because 6 maps to "six" maps to "sIX" maps to "IX" maps to 9.

%e a(7) = 5 because 7 maps to "seven" maps to "seVen" maps to "V" maps to 5.

%e a(8) = 1 because 8 maps to "eight" maps to "eIght" maps to "I" maps to 1.

%e a(9) = 1 because 9 maps to "nine" maps to "nIne" maps to "I" maps to 1.

%e a(35) = 0 because 35 maps to "thirty-five" maps to "thIrty-fIVe" maps to "IIV" which is not a well-formed Roman nhumeral, hence maps to 0.

%e a(1000) = 500 because 1000 maps to "one thousand" maps to "one thousanD" maps to "D" maps to 500.

%Y Cf. A002904, A005589.

%K base,easy,nonn,word

%O 0,6

%A _Jonathan Vos Post_, Sep 05 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 10:01 EDT 2024. Contains 371967 sequences. (Running on oeis4.)