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 ...)
Back to basics 3 - Temp Directory
330 Solvers
Rounding off numbers to n decimals
1082 Solvers
179 Solvers
multiply an array by its position number
79 Solvers
Back to Basics - New Data Type in R2016b - convert a char to a string
58 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!