Advertisement
rotti321

Elemente de combinatorica - exemple

Dec 23rd, 2021
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Permutari P(n)=1*2*...*n=n!
  2. 1 2 3
  3. 12
  4. 13
  5. 21
  6. 23
  7. 31
  8. 32
  9.  
  10. Aranjamente A(n,k)
  11. A(n,k)= n!/(n-k)!
  12.  
  13. A(n,0)=1 {}
  14. A(3,1)
  15. 1
  16. 2
  17. 3
  18.  
  19. C(n,k)=n!/(k!*(n-k)!)
  20.  
  21.  
  22.  
  23.  
  24. inv= inv*10+c
  25.  
  26.  
  27. 1234567
  28.  
  29. 7 0+7*1
  30. 5 7 7 + 5*10=57
  31. 3 57 57 + 3*100=357
  32. 1 357 357 + 1*1000=1357
  33.  
  34. 1357=1*10^3 + 3*10^2 + 5 *10^1 + 7* 10^0
  35. 3210
  36.  
  37. nr = nr + c*p
  38.  
  39.  
  40.  
  41. 1*2*... *10
  42. ______________
  43. 1*2*...*7
  44.  
  45. m+1*...*n
  46.  
  47.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement