solve (((n-1)n)/2)+1<=m<=(n(n+1))/2, m>0 for n