Determine the respective last digit and the first digit (reading left to right) in the base ten expansion of
23232323
Remember that this is evaluated starting at the top-right and proceeding down and to the left.
10 A=modpow(23,23,1000000)
20 B=modpow(23,A,1000000)
30 C=modpow(23,B,1000000)
40 print C
finds the last six digits as
...606247
|
Posted by Charlie
on 2013-11-15 12:16:03 |