Number of ways in which three numbers in A.P. can be selected from {1,2,3,.....,n} is
A
(n−12)2 if n is even
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
n(n−2)4 if n is even
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
(n−1)24 if n is odd
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
n(n−2)4 if n is odd
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is C(n−1)24 if n is odd
If a,b,c are in A.P., then a+c=2b ⇒a and c both are odd or both are even.
Case I: If n is even.
The number of ways of selection of two even numbers a and c is n2C2 and Number of ways of selection of two odd numbers is n2C2.
Hence the number of A.P′s possible are 2×n2C2=2×n2(n2−1)2=n(n−2)4
Case II: If n is odd.
The number of ways of selection of two odd numbers a and c is(n+1)2C2 and
Number of ways of selection of two even numbers is (n−1)2C2
Hence the number of A.P′s possible are =(n+12)(n+12−1)2+(n−12)(n−12−1)2 =18[(n−1)(n+1)+(n−3)] =(n−1)24