sum_{i=2}^m ((p-1) choose (i-2)) * ((n-k) choose (m-i))