View Single Post
  #4  
Old 09-21-2005, 02:24 AM
fatdave fatdave is offline
Junior Member
 
Join Date: Nov 2004
Posts: 4
Default Re: Impossible math question

Isn't "SOD(SOD(SOD(4444^4444)))" redundant? Since SOD(4444^4444) is a single digit number, then SOD(4444^4444) should be the same as SOD(SOD(4444^4444)).

Anyways, without going through all the work above.... just know that SOD(n) = n mod 9.

"n mod 9" means if you divide "n" by 9, the remainder is the modulus. So... the sum of digits of a number is equal to the remainder of dividing the number by 9.

If you want to cheat, here's a quick and easy formula to use in PHP for SOD(x^y):

$sod = bcmod(bcpow(x, y), 9);

For example: bcmod(bcpow(4444, 4444), 9);
Reply With Quote