i want to know how can we calculate nCr(formula of r selections out of n distinct objects) where n=100000 and r = 50000, i know this result is near to infinity, so thats why make the result modulo 1,000,000,007 . can u pls tell the logic? i have one code for this but im not sure if it is giving correct answer or not