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−1)2 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
none of these
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 and c both are odd or both are even.
Case1: n is even
The num,ber of ways of selection of two even numbers a and c is n/2C2. Number of ways of selection of two odd numbers is n/2C2. Hence the number of A.P. is 2n/2C2=2n2(n2−1)2=n(n−2)4
Case 2: n is odd
The number of ways of selection of two odd numbers a and c is (n+1)/2C2. Hence, the number of A.P.′s is (n+1)/2C2+(n−1)/2C2=(n+12)(n+12−1)2+(n−12)(n−12−1)2 =18(n−1)((n+1)+(n−3)) =(n−1)24