Given n, find the sum of the digits that make up 2^n.

Example:

 Input  n = 7
 Output b = 11

since 2^7 = 128, and 1 + 2 + 8 = 11..

Solution Stats

16258 Solutions

7861 Solvers

Last Solution submitted on Mar 02, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...