[Math] How to get the number of ways of getting a five card hand that is a straight flush from a standard deck of cards

card-gamescombinationsprobabilityself-learning

I do not get the result at this page, ex. 13-7:

Suppose that Aces can be either high or low; that is, that {Ace, 2, 3, 4, 5} is a straight, and so is {10, Jack, Queen, King, Ace}. The number of ways of getting a five card hand that is a straight flush from a standard deck of cards is:

The result is 36. However I got 40 following this approach:

I have 10 starting cards, from Ace to 10, and 4 suits, so I thought to have 40 subsets:

Ace, 2, 3, 4, 5
...
10, Jack, Queen, King, Ace

for each one of the 4 suits.
Where am I doing wrong?

Thanks

Best Answer

If OR is exclusive in the question, meaning that Ace can either be high or low but not both would give you 36 possible combinations. However the question isn't exactly stated in a way that makes it easy to interpret this. Your logic is right though, and it could be an error on your sources part. The possible combos are

A 2 3 4 5

2 3 4 5 6

3 4 5 6 7

4 5 6 7 8

5 6 7 8 9

6 7 8 9 10

7 8 9 10 J

8 9 10 J Q

9 10 J Q K

10 J Q K A

Related Question