Yes, there are closed-form expressions. The number you are looking for is the number of weighted integer compositions with weighting function $f(a)=a^p$ (you can google the relevant literature). Many recursions and other representations for this number exist.