If (x+1) is a factor of 3x2+kx+4, then k =_________________
If (x+1) is a factor of x4−(p−3)x3−(3p−5)x2+(2p−7)x+6, then p =