I am working on a project involving \"Dynamic Programming\" and am struck on this trivial thing, please help.
Suppose I take 4 as an input, I want to display somethi
n
i=0
(2^n) - 1
i