MathOverflow will be down for maintenance for approximately 3 hours, starting Monday evening (06/24/2013) at approximately 9:00 PM Eastern time (UTC-4).

## calculating modular exponentiation if the exponent is in base 3 [closed]

Hi , i am trying to solve such a problem as follows: say the base is 2(base 10) and exponent is 10(base 3) modulus is 10(base 10), then

there was a bug . Thanks .

-
 It's hard to answer this since you left half of the program away, for example the initialization of the variable result. – felix Mar 24 2011 at 8:44 sorry, corrected. – pranay Mar 24 2011 at 9:05