In a certain test there are n questions, in this test $2^{n−i}$ students gave wrong answer to at least i questions where i=1,2,3,…,n. If the total number of wrong answers given is 2047,what is the value of n?
My attempt:From the question $2^{n−1}$ students gave wrong answer to at least one question,$2^{n-2}$ students to at least 2 and so on.Hence there's one student who answered all n questions wrong.Now $2^{n-1}-2^{n-2}$ gives number of wrong answers by those students who got one question wrong.Similarly $2^{n-2}-2^{n-3}$ gives the number of wrong answers by students who got 2 questions wrong.On adding all such cases I arrived at $2^{n-1}-1=2047$ which gave me n=12 .Where did i go wrong?