In a certain test $a_i$ students gave wrong answers to at least i questions, where $i= 1,2,3......k$ No student gave more than k wrong answers. The total number of wrong answers is
I wasn't able to start solving this. I tried subtracting 2-1 for exactly 1 answer but I didn't understand what was happening. The solution provided uses the same logic from the below sum of Therefore, total number of wrong answers contributed by $2^{n−i} −2^{n−i−1}$ students who answered i questions wrong is $(2^{n−i}−2^{n−i−1})i$. I have no clue how this was derived.
There is a similar question on the site already but it is the other way around and doesn't resolve my doubt. To find number of questions when number of wrong answers is given