• 2010
  • Feb
  • 1

Roman Fractions

Beside Roman whole numbers, there also exist Roman fractions.

Difficulty: Medium

An example of a Roman fraction is this:

S•••• + •• + I = II

Which means:

5/6 + 2/12 + 1 = 2

In the file romanfractions.txt (right click -> save as), you see 50 Roman fractions. The Roman fractions are between 1/12 and 1001, so they can be > 1!

To make it easy to read in:

. = • = 1/12
S = S = 6/12
I (Capital i) = I = 12/12

You can combine fractions:

S.. = 6/12 + 1/12 + 1/12 = 8/12
IVS.. = 4 + 6/12 = 4 6/12

Your task is to calculate the sum of all the fractions, and to convert that to a Roman number.

Click here to see the answer…

Add comment

Fill out the form below to add your own comments