TIL that the Roman Numerals have only 7 unique symbols. I for 1, V for 5, X for 10, L for 50, C for 100, D for 500 and M for 1000.
1/n
This might not be interesting but the fact that there is a rule to use these symbols to create the roman numeral representation of any number is indeed very interesting.
2/n
If you want to represent any number. Firstly list down the symbols, add up the symbols from the right to left, except if, the left symbol is less than the right total, subtract the left symbol from the right total.
3/n
For example, if I want to represent 2, it will be I I, which if summed from the right is 1+1, to represent 6, it will be V I, which is 5+1 if summed from the right.
4/n
Now, what if we want to represent 4?
It will be I V, notice I (left symbol) is less than V (right total), hence instead of summing we will subtract 1 from 5 equal to 4.
Isn’t this cool? 😎
5/n
If you have read so far, try to find what M C M X C I X represents. #computerscience#cse
6/n