A = 2548788451252366445785585474844745854781554558547847844
B = 50135928365972237608005364328936872115615930177019003323815
x is unknown
Given A and B find C, where C must be the nearest integer to A that goes into B x times.
Note: C must be smaller than A or equal with A.
Calculating C manually will involve subtracting or dividing A from B x times until we get near A and therefore to C.
Is there a formula or maybe a SageMath or PARI method to calculate C?
Thanks.
C=15 in this case.
Not sure if I've explained correctly in the question but this number 15 is the nearest to 111 that is not larger than 111. Maybe I am looking for a remainder but not sure if it's possible to calculate with larger numbers.
– Robert Jan 07 '21 at 17:13