  In this note, we provide a simple derivation of expressions for the
restricted partition function and its polynomial part. Our proof relies on
elementary algebra on rational functions and a lemma that expresses the
polynomial part as an average of the partition function.
