On the Subject of Real Math

“Real”, as in, breaking the limits of fractions.

For an explanation of the module see the original manual. This manual does not explain the module, rather describes a solving strategy.

Consider each cell individually, let the reads for this cell be a1, a2, a3 and the multipliers be m1, m2

Compute a1m1 and add a nonnegative integer less than a hundred to it to get a number which ends on a2. Multiply this number by m2 and once again add a nonnegative integer less than a hundred such that it ends on a3. Finally subtract a1m1m2. Refer to this as x.

The original fraction of the cell now has a lower bound of x/m1m2 and an upper bound of (x+1)/m1m2. Look this up in the table on the next page. The submission for this cell will then be (numerator*m1m2 mod denominator) for the numerator, whilst the denominator remains unchanged.

This value is actually unique with 3 stages given so finding the first value higher than the lower bound is actually sufficient. Remember that you can double-check the values.

Repeat this for all cells and you will have solved the module. :D

Example

Suppose that the values we get from the module are a = {48, 18, 21} and m = {79, 83}.

We compute a1m1 and get 3792. To make it end on a 18 we need an additional 26. So now we have 3818. Multiply by m2 and we get 316894. To make this end on 21 we need an additional 27, making our current value 316921. To get x we subtract a1m1m2: x = 316921-48*79*83 = 2185.

Dividing by m1m2 we get 0.3332316608. Finding the first number greater than it we find 1/3. Solving for the numerator we have 1*79*83 % 3 = 2. Meaning that our answer for this cell is 2/3.

You can test the validity this solution by using the value 48+1/3 for a1 multiplying it out. Here we get the sequence 48.33, 3818.33, 316921.66 which matches the read.

1/290.03448
1/230.04347
1/190.05263
1/170.05882
2/290.06896
1/130.07692
2/230.08695
1/110.09090
3/290.10344
2/190.10526
2/170.11764
3/230.13043
4/290.13793
1/70.14285
2/130.15384
3/190.15789
5/290.17241
4/230.17391
3/170.17647
2/110.18181
1/50.2
6/290.20689
4/190.21052
5/230.21739
3/130.23076
4/170.23529
7/290.24137
6/230.26086
5/190.26315
3/110.27272
8/290.27586
2/70.28571
5/170.29411
7/230.30434
4/130.30769
9/290.31034
6/190.31578
1/30.33333
10/290.34482
8/230.34782
6/170.35294
4/110.36363
7/190.36842
11/290.37931
5/130.38461
9/230.39130
2/50.4
7/170.41176
12/290.41379
8/190.42105
3/70.42857
10/230.43478
13/290.44827
5/110.45454
6/130.46153
8/170.47058
9/190.47368
11/230.47826
14/290.48275
1/20.5
15/290.51724
12/230.52173
10/190.52631
9/170.52941
7/130.53846
6/110.54545
16/290.55172
13/230.56521
4/70.57142
11/190.57894
17/290.58620
10/170.58823
3/50.6
14/230.60869
8/130.61538
18/290.62068
12/190.63157
7/110.63636
11/170.64705
15/230.65217
19/290.65517
2/30.66666
13/190.68421
20/290.68965
9/130.69230
16/230.69565
12/170.70588
5/70.71428
21/290.72413
8/110.72727
14/190.73684
17/230.73913
22/290.75862
13/170.76470
10/130.76923
18/230.78260
15/190.78947
23/290.79310
4/50.8
9/110.81818
14/170.82352
19/230.82608
24/290.82758
16/190.84210
11/130.84615
6/70.85714
25/290.86206
20/230.86956
15/170.88235
17/190.89473
26/290.89655
10/110.90909
21/230.91304
12/130.92307
27/290.93103
16/170.94117
18/190.94736
22/230.95652
28/290.96551