Specifically, the calculation I'm doing right now is the following
Math.Pow(1527768,7)%7281809;
I know the answer to this is 1010101
, however, this is not the answer I am receiving. I believe this is due to the fact I am losing precision in the Math.Pow()
. I am aware of BigInteger
and I know this works but System.Numerics
is unavailable in the environment I am using (I am unable to change the environment in any way, so, for now, assume BigInteger is out of the Question).
Is there any other way to perform the above operation to a more accurate precision?