质数p,q.满足3p+5q=31,求p除以3q+1