dojo-unicamp / 2010_09_15_escolhas /

Filename Size Date modified Message
..
374 B
207 B
1.5 KB
Escolhas
========

Calcular quantas formas há de se escolher k itens de um conjunto de n, onde a ordem não importa.

Ou seja, cálculo do coeficiente Binomial ou combinatória:

(n k) = n! / (k!(n-k)!)

Em que n! = n*(n-1)*(n-2)*...*1:

5! = 1 x 2 x 3 x 4 x 5 = 120

Levar em consideração a simplificação entre fatoriais:

(7 3) = 7! / (3!(7 - 3)!) = 7*6*5/3*2*1 = 35
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.