bram1256
bram1256
  • Threads: 3
  • Posts: 5
Joined: Nov 23, 2013
November 27th, 2013 at 2:59:34 AM permalink
Hi,

Does anyone know a link to a website, simulation programm or whatever, where I can calculate the number of possible combinations for the bank to get 20, with 10 as visible card, against a player who has 20. It would even be better if it shows all card combination for the bank to get 20, so not just the number of possibilities but also the card combination; (10,2,2,2,4) or (10,2,A,7) etc.
Thanks
mustangsally
mustangsally
  • Threads: 25
  • Posts: 2463
Joined: Mar 29, 2011
November 27th, 2013 at 8:48:56 AM permalink
what a unique question.
you mean something like this to get started

Number of partitions: 42
and of course order is not considered in the below list
(8,2 and 2,8 are different permutations of a partition,
8,2 not being a dealer hit sequence but 2,8 would be)

you would have to calculate the number of combinations for each partition
as some would not actually come into play
10,9,A dealer would not hit the 19

1 = A

10 = 10
9 + 1 = 10 <<<< not for dealer hand
8 + 2 = 10 <<<< 2,8 would work
8 + 1 + 1 = 10 <<<< not for dealer hand
7 + 3 = 10 <<<< 3,7 would work
7 + 2 + 1 = 10
7 + 1 + 1 + 1 = 10
6 + 4 = 10
6 + 3 + 1 = 10
6 + 2 + 2 = 10
6 + 2 + 1 + 1 = 10
6 + 1 + 1 + 1 + 1 = 10
5 + 5 = 10
5 + 4 + 1 = 10
5 + 3 + 2 = 10
5 + 3 + 1 + 1 = 10
5 + 2 + 2 + 1 = 10
5 + 2 + 1 + 1 + 1 = 10
5 + 1 + 1 + 1 + 1 + 1 = 10
4 + 4 + 2 = 10
4 + 4 + 1 + 1 = 10
4 + 3 + 3 = 10
4 + 3 + 2 + 1 = 10
4 + 3 + 1 + 1 + 1 = 10
4 + 2 + 2 + 2 = 10
4 + 2 + 2 + 1 + 1 = 10
4 + 2 + 1 + 1 + 1 + 1 = 10
4 + 1 + 1 + 1 + 1 + 1 + 1 = 10
3 + 3 + 3 + 1 = 10
3 + 3 + 2 + 2 = 10
3 + 3 + 2 + 1 + 1 = 10
3 + 3 + 1 + 1 + 1 + 1 = 10
3 + 2 + 2 + 2 + 1 = 10
3 + 2 + 2 + 1 + 1 + 1 = 10
3 + 2 + 1 + 1 + 1 + 1 + 1 = 10
3 + 1 + 1 + 1 + 1 + 1 + 1 + 1 = 10
2 + 2 + 2 + 2 + 2 = 10
2 + 2 + 2 + 2 + 1 + 1 = 10
2 + 2 + 2 + 1 + 1 + 1 + 1 = 10
2 + 2 + 1 + 1 + 1 + 1 + 1 + 1 = 10
2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 = 10
1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 = 10

http://www.wolframalpha.com/input/?i=IntegerPartitions%5B10%5D

a program to do exactly what you want
maybe you have to write it yourself
what do you have cooking?
Sally

I Heart Vi Hart
  • Jump to: