find the unique, non-repeating, powers of 2 that sum to a given non-zero integer, n
example:
n = 23
result = [1 2 4 16]
the result does not need to be in any specific order

Solution Stats

20 Solutions

17 Solvers

Last Solution submitted on Apr 23, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers17

Suggested Problems

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!