slove(t = p+3r/6 , r)