summaryrefslogtreecommitdiff
path: root/progs/a304.py
blob: 06d4c9b82f46d6d7cd268f1ac6336466fe07b6e1 (plain)
1
2
3
4
5
6
7
def factorial(start,end): 
    res = 1 
    for i in range(start,end + 1): 
        res *= i      
    return res 
def sum_of_square(n): 
   return int(factorial(n + 1, 2 * n)  /factorial(1, n))