Problem 43019. Iterative sum of digits of 2^n number
Solution Stats
Problem Comments
-
7 Comments
Show
4 older comments
goc3
on 5 Oct 2016
I clarified the problem statement and fixed one test case to make the problem solvable as originally intended.
James
on 6 Oct 2016
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.
Binbin Qi
on 11 Nov 2016
The last test is not correct. Could you check it ?
Jean-Marie Sainthillier
on 30 May 2017
Yes, this is a sequence (1 2 4 8 7 5 1 2 4 8 7 5 ...)
ChrisR
on 12 Jul 2021
The test with n = 111 is still incorrect.
Ramon Villamangca
on 27 Oct 2021
is should be 8 for n = 111. am I missing something?
goc3
on 12 Apr 2022
The last test case has been fixed.
Solution Comments
Show commentsProblem Recent Solvers28
Suggested Problems
-
Find out value of sine given by degree.
314 Solvers
-
Append two matrix as shown below example
217 Solvers
-
482 Solvers
-
3810 Solvers
-
68 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!