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

19 Solutions

16 Solvers

Last Solution submitted on Mar 04, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers16

Suggested Problems

Problem Tags

Community Treasure Hunt

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

Start Hunting!