If 3x^3+ax^2+3x+2 leaves a remainder of 4 on division by (3x-1), find a.