Group Abstract Group Abstract

Message Boards Message Boards

Overflow calculating the last 10, 000 digits of (((96717311574016^16777216^4)^8^4)^7)^2

Posted 1 day ago

why is 96717311574016^8^16 the biggest number it can compute and any number larger than that overflows?
I was discussing the first 4000 digits of my expression (((96717311574016^16777216^4)^8^4)^7)^2 * 7^11. Because this expression is greater than 96717311574016^8^16 and it is going to overflow, can someone help me how to calculate the LAST ten thousand, or even MILLION digits of this expression. Do I calculate the mod of this expression?
Can I even calculate the mod if its just going to overflow?

POSTED BY: Mark Raygorodsky
4 Replies
Posted 1 day ago

I think that

(((96717311574016^16777216^4)^8^4)^7)^2==96717311574016^(16777216^4*8^4*7*2)

You must check that and convince yourself whether that is correct or not. As you have seen, Mathematica cannot simply directly calculate both those values and compare them for equality.

If that is correct then

Mod[PowerMod[96717311574016,16777216^4*8^4*7*2,10^(10^4)]*7^11,10^(10^4)]

returns the last 10 thousand digits of the result in a few seconds.

Study all the details of the documentation for PowerMod carefully and then find at least three completely different ways that you can try to check whether I have made any mistake or if the result might be incorrect.

POSTED BY: Bill Nelson
Posted 12 hours ago

but first I need to know how to use Mathematica on my computer

You could download and install a free 15-day trial version: Mathematica trial

POSTED BY: Hans Milton
Posted 12 hours ago

Changing from 10 thousand digits to 1 million digits required changing 10^(10^4) to 10^(10^6) in two places. The output is then large enough that MMA doesn't immediately show you all of the result on the screen so adding //InputForm may overcome that. That may pop up a little window asking you if you really want an output that large. If so then you confirm you want that.

Try

Mod[PowerMod[96717311574016,16777216^4*8^4*7*2,10^(10^6)]*7^11,10^(10^6)]//InputForm

and see if that works for you.

POSTED BY: Bill Nelson

thanks so much bill! so now my question is how to I calculate the last MILLION digits of my expression (((96717311574016^16777216^4)^8^4)^7)^2 * 7^11? I am basically asking to calculate mod 10^1, 000, 000 of 96717311574016^(16777216^4 * 8^4 * 7 * 2) * 7^11. but first I need to know how to use Mathematica on my computer.

POSTED BY: Mark Raygorodsky
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard