It's a partial fraction decomposition. And how Mathcad got it probably has little to do with how you would do it manually.
You also have a serious error in the original equation, with the denominator applying p as a function rather than multiplying by p.
__________________
� � � � Tom Gutman