Number of partitions of a positive integer with largest part not exceeding k

28 Views Asked by At

What is the number of partitions of $n\in \mathbb{N}$ so that the largest part is at most $k$?

I tried it for a few small cases, but I am unable to find a general way.