Skip to main content
1 of 2
mathse
  • 171
  • 4

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.

mathse
  • 171
  • 4