Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- from math import factorial
- n = int(input())
- rep = ''
- for i in range(n+1):
- val = factorial(n)/(factorial(i)*factorial(n-i))
- rep += str(int(val))
- rep += ' '
- print(rep.strip())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement