(n, k)
return sum(_nT(n - k, j) for j in range(min(k, n - k) + 1))
Return the partitions of ``n`` items into ``k`` parts. This
    is used by ``nT`` for the case when ``n`` is an integer.
Return the partitions of ``n`` items into ``k`` parts. This
    is used by ``nT`` for the case when ``n`` is an integer.
Return the partitions of n items into k parts . This is used by nT for the case when n is an integer .
def _nT(n, k):
    """Return the partitions of ``n`` items into ``k`` parts. This
    is used by ``nT`` for the case when ``n`` is an integer."""
    if k == 0:
        return 1 if k == n else 0
    return sum(_nT(n - k, j) for j in range(min(k, n - k) + 1))
def _nT ( n , k ) : if k == 0 : return 1 if k == n else 0 return sum ( _nT ( n - k , j ) for j in range ( min ( k , n - k ) + 1 ) )