The number of ways of choosing triplet (x,y,z) such that z≥max{x,y} and x,y,zϵ{1,2,...,n,n+1} is
A
n+1C3+n+2C3
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
n(n+1)(2n+1)/6
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
12+22+...+n2
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
2(n+2C3)−n+1C2
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution
The correct options are Bn(n+1)(2n+1)/6 C12+22+...+n2 D2(n+2C3)−n+1C2 When z=n+1, we can choose x,y from {1,2,..,n} When z=n+1,x,y can be chosen in n2 ways and when z=n,x,y can be chosen in (n−1)2 ways and so on. Therefore, the number of ways of choosing triplets is n2+(n−1)2+...+12=16n(n+1)(2n+1) Alternatively triplets with x=y<z,x<y<z,y<z<x can be chosen in n−1C2,n+1C3,n+1C3 ways. Therefore, n+1C2+2(n+1C3)=n+2C2+n+1C3=2(n+2C3)−n+1C2.