(p+q)^9

Why aren't you using Pascal's triangle?

Just go to row 9 copy the coefficents.
http://ptri1.tripod.com/