Cody

Problem 42085. Sum of digits of powers of 2

Given n, first, calculate the number 2^n. Then, sum the digits that comprise that number. For example:

 Input: n = 7
 2^n = 128
 Output: b = 1 + 2 + 8 = 11

Solution Stats

47.13% Correct | 52.87% Incorrect
Last solution submitted on Dec 14, 2018

Problem Comments

Problem Recent Solvers33

Suggested Problems

More from this Author2

Problem Tags