Polynomial $P(x)$ contains only terms of odd degree.When $P(x)$ is divided by $(x-3)$ ,the remainder is $6$.

Solution 1:

Keep in mind, $P(x)$ is an odd polynomial, so $P(-3)=-6=-3a+b$. So we adding that to $6=3a+b$, we get $0=2b$, so $b=0$. That leaves $a=2$