def Part(n,p): if p==1 or p==n: S=1 else: S=Part(n-1,p-1)+Part(n-1,p) return S