Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 8

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 11

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 14

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 105

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 105

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 105

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 106

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 106

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 108

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 108

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 108

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 108

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 108

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 109

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 109

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 109

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 109

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 111
 Forum Panda Pirate
Forum Grenier xIF  
Panda Pirate, forum rôliste

Deprecated: Function strftime() is deprecated since 8.1, use IntlDateFormatter::format() instead in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 39
Lisez d'abord la FAQ, svp =>[ FAQ ] [ Thread Index ] [ Search ] [ Archives ] [ Pandapirate ]

Topic: tu te souviens du triangle de pascal?
Posted by: Tandyys at mer. 23 mars 2011 22:28:33

Keywords:

Message:

tu commence par un 1 en haut, et ensuite chaque ligne fait 1 nombre de plus que celle du dessus, et tu la remplis, à chaque fois, en ajoutant les 2 nombres en diagonales du dessus. imagine le triangle ci-dessous que tu as "redressé"

1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
...
1 10 45 .. y ..... 45 10 1 <-- c'est la ligne que tu veux, elle contient 11 nombres

bon ben tes probas d'avoir x pile, x entre 0 et 10 (11 possibilités en tout, donc) c'est le x° nombre de cette ligne, divisé par 2^10 (soit 1024)

ainsi, tu as 1/1024 chance d'avoir 0 piles (ou 0 faces, soit 10 piles), 10/1024 d'en avoir 1 (ou 9), 45/1024 d'en avoir 2...

le x° nombre, noté y, tu peux le calculer ainsi:

10 x 9 x 8 x 7 ... (produit de x nombres) divisé par 1 x 2 x 3 x 4 (produit de x nombres aussi)

autre exemple, la proba d'avoir 5 piles est donc 10 x 9 x 8 x 7 x 6 / (1 x 2 x 3 x 4 x 5) / 1024, soit 30240/120 / 1024 = 0.25 (25%)

ok?




Warning: Undefined variable $link in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 98

Fatal error: Uncaught TypeError: mysqli_query(): Argument #1 ($mysql) must be of type mysqli, null given in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php:98 Stack trace: #0 /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php(98): mysqli_query(NULL, 'SELECT rootID, ...') #1 /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php(52): displayThread('112271') #2 {main} thrown in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 98