The correct option is D 3n2−3n+2(3n−1)(3n−2)
Let r,r+1,r+2,……r+3n−1 be 3n consecutive numbers. They can be divided in 3 groups as
G1:r,r+3,r+6,……r+3n−3G2:r+1,r+4,r+7,……r+3n−2G3:r+2,r+5,r+8,……r+3n−1
Sum of three numbers is divisible by 3 if all 3 are from G1 or G2 or G3, or exactly one is from each of G1, G2 and G3.
Probability=nC3×3+nC1×nC1×nC13nC3
=3n2−3n+2(3n−1)(3n−2)