We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Project Euler #119: Digit power sum
Project Euler #119: Digit power sum
Sort by
recency
|
12 Discussions
|
Please Login in order to post a comment
Any hint to why i'm getting wrong answer on all testcases except 0, 18 and 19
is 10^100 bound given in decimal or base B?
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)
.can any one explain me this question . not sure about the base part
This part of the question was not clear.
We know the summation and the number is on base 10 however n's base did not specified. 512 = (5+1+2)^n
Should we accept that as on base 10?