The range for q in the last inequality can be restricted from
q>0
to
3 <= q <= 8
blackjack
flooble's webmaster puzzle