Let
(a+d),(a+2d) and
(a+3d) be three consecutive terms in A.P.
As given, (a+d)+(a+2d)+(a+3d)=6 ...... (1)
and (a+d)(a+2d)(a+3d)=−120 ....... (2)
From first equation (a+d)+(a+2d)+(a+3d)=6 we get,
3a+6d=6
⟹ a+2d=2
∴ a=2−2d
Substitute value of a in the equation (2) we get,
(2−2d+d)(2−2d+2d)(2−2d+3d)=−120
⟹ (2−d)(2)(2+d)=−120
⟹ (4−d2)=−60
⟹ d2=64
∴ d=±8
Hence, there are two possibilities
(i) If d=8 then a=2−2×8=−14
Then the three consecutive numbers would be −6,2,10
(ii) If d=−8 then a=2−2×(−8)=18
Then three consecutive numbers would be 10,2,−6
∴ The three consecutive numbers are −6,2,10