# Coefficient of a single variable polynomial over a modular ring

I want to find coefficent of a polynomial ring. How to do this?

R.<x>=IntegerModRing(15)[] f=1+x^2+4*x^6

So coefficient of x is 0, x^2 is 1, x^6 is 4 etc. How to get these?