The correct option is
C 3n2−n2Any number divisible by 3 can be written as 3λ−2,3λ−1,3λ
Arranging {1,2,3,4,...,3n} as
A={1,4,7,...,3n−2} numbers of the form 3λ−2
B={2,5,8,...,3n−1} numbers of the form 3λ−1
C={3,6,9,...,3n} numbers of the form 3λ
∴ there are three sets of numbers .
Let us select 2 numbers from set C and 1 number from set B and 1 number from set A
=nC2+nC1×nC1
=n!(n−2)!2!+n!(n−1)!×n!(n−1)!
=n(n−1)(n−2)!(n−2)!2!+n(n−1)!(n−1)!×n(n−1)!(n−1)!
=n(n−1)2+n2
=n2−n+2n22=3n2−n2