Sol. Four consecutive terms of an AP can be written symmetrically as
(a−3d),(a−d),(a+d),(a+3d)
so that the common difference is 2d and the d terms cancel when we add.
Step 1 — use the sum.
(a−3d)+(a−d)+(a+d)+(a+3d)=32
4a=32⇒a=8
Step 2 — use the ratio.
(a−d)(a+d)(a−3d)(a+3d)=157
a2−d2a2−9d2=157
Put a=8, so a2=64:
64−d264−9d2=157
Cross-multiply:
15(64−9d2)=7(64−d2)
960−135d2=448−7d2
960−448=135d2−7d2
512=128d2
d2=4⇒d=2 or d=−2
Step 3 — write the numbers.
With a=8 and d=2:
8−6,8−2,8+2,8+6=2, 6, 10, 14
With d=−2 we get the same numbers in reverse order: 14,10,6,2.
Check: 2+6+10+14=32 ✓, and 6×102×14=6028=157 ✓
Hence, the numbers are 2,6,10,14 (or 14,10,6,2).