Split 597 into three parts such that these are in A.P. and the product of the two smallest parts is 796

a + a+d + a+2d = 597

3a + 3d = 597
a+d = 199 ----> d = 199-a

a(a+d) = 796
a^2 + ad - 796=0
a^2 + a(199-a) - 796=0
a^2 + 199a - a^2 - 796=0
199a = 796
a = 4
d = 199-4 = 195

the 3 parts are 4, 199, 394

check: 4+199+394 = 597
4(199) = 796