Problem 43019. Iterative sum of digits of 2^n number
Solution Stats
Problem Comments
-
7 Comments
I clarified the problem statement and fixed one test case to make the problem solvable as originally intended.
Anyone else running into an issue with 2^111? I'm getting 2^111 = 2596148429267413814265248164610048, which sums to 143, which sums to 8. The test suite says 9.
The last test is not correct. Could you check it ?
Yes, this is a sequence (1 2 4 8 7 5 1 2 4 8 7 5 ...)
The test with n = 111 is still incorrect.
is should be 8 for n = 111. am I missing something?
The last test case has been fixed.
Solution Comments
Show commentsProblem Recent Solvers28
Suggested Problems
-
Sum all integers from 1 to 2^n
12993 Solvers
-
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
466 Solvers
-
Max Change in Consecutive Elements
136 Solvers
-
309 Solvers
-
Matlab Basics - y as a function of x
455 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!