meghana180799

Untitled

Jun 17th, 2019
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. def p(n):#n is the number of factors
  2. if(n==1 or n==2):
  3. return 1
  4. else:
  5. return (n-1)*p(n-1)+(n-2)*p(n-2)
Add Comment
Please, Sign In to add comment