If nPr= nPr+1 and nCr= nCr−1, then the value of r is equal to
If nCr = nCr−1 and nPr = nPr+1, then the value of n is