if we put N=2 in the expanded equation, X comes 2 but if we put N=2 in X=(2^N+1)-2 we get 6… this solution is wrong the correct X after simplification is coming X=(2^N)-1-(N/2).
On solving for X i'm getting X=(2^N)-1-(N/2)
Hey, can you please elaborate what you are trying to ask?
Please add the link to the problem you are talking about.
Link not accessable.