10-07-2024, 10:38 PM
(10-07-2024, 10:20 PM)Kernelpanic Wrote: 4^4 = 256, that's clear. But from what I've read, ((5^4)^4) should be equal to 5^(4*4). That's how the MS calculator shows it.You are correct that ((5^4)^4) is the same as 5^16. I think your issue is dimensioning the "sum" variables as long (or unsigned long). The result of 5^16 is much larger than can be represented by a long, I think. Try without dimensioning as unsigned long.
So that should be mathematically correct.