Cody

Problem 189. Sum all integers from 1 to 2^n

Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

Solution Stats

58.69% Correct | 41.31% Incorrect
Last solution submitted on Apr 21, 2018

Problem Comments

Solution Comments

Recent Solvers4710

MATLAB Online Live Editor Challenge

Win cash prizes and have your live script featured on our website

Learn more