Project Euler #119: Digit power sum

  • + 0 comments

    I wonder how many digits would it be if it is base and the number is . One digit? How do you count ? or ?

    EDIT: The answer is the latter one. This implies that the upper bound of the digit sum for bases can be beyond . I used (100 / len(str(B-1)) + 1) * (B - 1).