The correct option is B 3n2−n2
Given number can be rearranged as
P={1,4,7,....,3n−2}, n(P)=n
Q={2,5,8,....,3n−1}, n(Q)=n
R={3,6,9,....,3n}, n(R)=n
For sum of 2 numbers to be taken from above sets such that their sum is divisible by 3, we must take two numbers from R or one number each from P and Q.
∴the total number of required ways is
nC2+( nC1× nC1)=n(n−1)2+n2=3n2−n2