Advertisement
AlexG2230954

Untitled

May 14th, 2022
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. from math import factorial as fact
  2.  
  3. def C(k, n):
  4.     return fact(n) // (fact(k) * fact(n - k))
  5.    
  6. n = int(input())
  7. print(*[C(k, n - 1) for k in range(n)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement