Question 95385
the easiest way is with a table


Q_D_N
4_0_0
3_2_1
3_1_3
3_0_5
2_5_0
2_4_2
2_3_4
2_2_6
2_1_8
2_0_10
1_7_1
1_6_3
1_5_5
1_4_7
1_3_9


now that I have almost finished the table, I see the solution


1 way with 4Q, 3 ways with 3Q, 6 ways with 2Q, 8 ways with 1Q, and 11 ways with no Q ... 29 ways