Computer Science, asked by Lokita4457, 8 months ago

We know about number systems. The Roman Numerals and the alternative "place value system" with a given base. For the purpose of this problem, we limit ourself to : Roman numerals with values upto 3999(MMMCMXCIX) "Place value system" numbers having bases from 2 (with possible symbols 0, 1) through 36 (with possible symbols 0, 1, …, 9, A, … ,Z) Consider the following procedure : Accept a natural number N (base 10) If N lies in the closed interval [1, 3999], i.e between 1 and 3999(both inclusive), convert N to R, its Roman numeral representation, else output N as the result and stop. Identify the base in which the value of R, now considered to be in "place value system", is least and calculate its value in base 10, replacing N with this value

Answers

Answered by Anonymous
0

Answer:

Roman numerals don't use place value like our numbers do. For instance, when we write the character (that is, the numeral) "5", this digit stands for "five ones" in the number "215", for "five tens" in the number "251", and for "five hundreds" in the number "521".

Similar questions