If 5x + 3 < 13 and x is a whole number, then find the values of x.
The polynomials ax3+3x2-13 and 2x3-5x+a are divided by x+2. If the remainder in each case is the same, find the value of a.