-
1 Comment
James
on 20 May 2015
Including a value where x<=15 and the formula is true (like the x=8; n=2 example in your problem description) will make this solution wrong.
Suggested Problems
-
1269 Solvers
-
Number of 1s in a binary string
9715 Solvers
-
475 Solvers
-
300 Solvers
-
181 Solvers
More from this Author1
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!