Repeated Digit Sum of A^B

Revision en2, by simplecomplex, 2018-06-06 14:09:23

Here's the problem from last year's ACM ICPC Dhaka Regional Preliminary Round.

It says to calculate sod(n) [sum of digits of n] while n >= 10. Here n = a^b, (0<= a,b <= 10^50,000 and a+b>0 ) Any thoughts on how to solve this?

Tags number theory, math

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English simplecomplex 2018-06-06 14:09:23 6 Tiny change: 's of n]** until **n >= 10' -> 's of n]** while **n >= 10'
en1 English simplecomplex 2018-06-06 14:07:06 340 Initial revision (published)