In a certain test, there are n questions. In this test (n−r)2 students gave wrong answers to at least r questions (1≤r≤n). If total number of wrong answers given is 204, then the value of n is
Open in App
Solution
no. of students giving wrong answers to at least r questions =(n−r)2 no. of students giving wrong answers to exactly r questions =(n−r)2−(n−r−1)2=2n−2r−1
Total no. of wrong answers =n−1∑r=1(2n−2r−1)⋅r=(2n−1)n−1∑r=1r−2n−1∑r=1r2=(2n−1)(n−1)(n)2−2⋅n(n−1)(2n−1)6⇒n(n−1)(2n−1)6=204⇒n=9