#!/home/user/.nix-profile/bin/bc -q # probabilities of seka combinations for game of two players with one Joker in the deck scale=3 total = 20 * 19 * 18 print \ "вероятность 32 : " , 20 * 3 * 2 / total , "\n" , \ "вероятность 31 : " , 20 * 4 * 2 / total , "\n" , \ "вероятность 30 : " , 20 * 3 * 3 / total , "\n" , \ "вероятность 22 : " , 20 * 4 * 3 / total , "\n" , \ "вероятность 21 : " , 20 * 19 * 2 / total , "\n" , \ "вероятность 20 : " , 16 * 16 * 6 / total , "\n" , \ "вероятность 11 : " , 20 * 15 * 9 / total , "\n" , \ "вероятность 10 : " , 16 * 11 * 6 / total , "\n" halt