The correct option is C z=−3−2i
z2×(1+i)=−7+17i
Let z=x+iy, where x,y∈R
⇒(x+iy)2=−7+17i(1+i)⇒x2−y2+2ixy=−7+17i(1+i)×(1−i)(1−i)⇒x2−y2+2ixy=10+24i2⇒x2−y2=5, 2xy=12⇒x2−y2=5, xy=6
Solving the equations, we get
x=3,y=2 or x=−3,y=−2
Hence, z=3+2i or z=−3−2i