So the Euros got me wondering
1) What is the highest number of points a 3rd place team could get? Along with that, what's the lowest number of points a team in 2nd needs to get to confirm advancement
2) What's the highest number of points a 4th place team can get? As well, what's the lowest number of points a 3rd place team needs to confirm potential qualification?
3) What are all the permutations that a group stage can have?
As such, I created a small javascript program that ran and here are the results I got, filtered for duplicates:
From this, I found the following:
1. The highest number of points for a 3rd place team is 6, meaning that to guarantee at least second place, the second place team has to get 7 points, aka two wins and a draw. There is a possibility that even after winning two games, a team is NOT guaranteed second place!
2. The highest number of points the 4th place team is... 4! to confirm not last, 3rd place must get at least 5 points.
3. Here are all the permutations. Seeing as it's impossible to get 8 points, the only way to guarantee first place in a group is to win all three games. Most likely two wins and a draw can seal the deal on 7 points, but there are a few cases where two teams end up on 7 points, so it's not guaranteed.
I've always wondered what the possible permutations are, and this is fascinating to me so I hope some of you learned anything fun.
As an added bonus, I'm going to leave two more things:
1. The full set of possibilities, with team names connected to the points:
2. Here is the algorithm I used to find the solutions, if anyone is interested: https://jsfiddle.net/#&togetherjs=g9lJnsbJrI
1) What is the highest number of points a 3rd place team could get? Along with that, what's the lowest number of points a team in 2nd needs to get to confirm advancement
2) What's the highest number of points a 4th place team can get? As well, what's the lowest number of points a 3rd place team needs to confirm potential qualification?
3) What are all the permutations that a group stage can have?
As such, I created a small javascript program that ran and here are the results I got, filtered for duplicates:
[[0,3,6,9],[1,1,6,9],[3,3,3,9],[1,3,4,9],[0,4,4,9],[1,2,4,9],[2,2,2,9],[3,3,6,6],[0,6,6,6],[1,4,6,6],[1,3,6,7],[3,4,4,6],[0,4,6,7],[1,4,5,6],[2,4,4,6],[1,2,6,7],[2,2,5,6],[3,3,4,7],[0,3,7,7],[1,3,5,7],[2,3,4,7],[0,4,5,7],[1,3,4,7],[1,4,4,7],[2,2,4,7],[1,1,7,7],[1,2,5,7],[2,2,3,7],[3,4,4,5],[2,3,5,5],[3,4,4,4],[4,4,4,4],[2,4,4,5],[1,4,5,5],[2,3,4,5],[0,5,5,5],[1,3,5,5],[2,2,5,5],[2,3,3,5],[3,3,3,3]]
From this, I found the following:
1. The highest number of points for a 3rd place team is 6, meaning that to guarantee at least second place, the second place team has to get 7 points, aka two wins and a draw. There is a possibility that even after winning two games, a team is NOT guaranteed second place!
2. The highest number of points the 4th place team is... 4! to confirm not last, 3rd place must get at least 5 points.
3. Here are all the permutations. Seeing as it's impossible to get 8 points, the only way to guarantee first place in a group is to win all three games. Most likely two wins and a draw can seal the deal on 7 points, but there are a few cases where two teams end up on 7 points, so it's not guaranteed.
I've always wondered what the possible permutations are, and this is fascinating to me so I hope some of you learned anything fun.
As an added bonus, I'm going to leave two more things:
1. The full set of possibilities, with team names connected to the points:
{"all":[{"A":9,"B":6,"C":3,"D":0},{"A":9,"B":6,"C":0,"D":3},{"A":9,"B":6,"C":1,"D":1},{"A":9,"B":3,"C":3,"D":3},{"A":9,"B":3,"C":0,"D":6},{"A":9,"B":3,"C":1,"D":4},{"A":9,"B":4,"C":3,"D":1},{"A":9,"B":4,"C":0,"D":4},{"A":9,"B":4,"C":1,"D":2},{"A":9,"B":3,"C":6,"D":0},{"A":9,"B":3,"C":3,"D":3},{"A":9,"B":3,"C":4,"D":1},{"A":9,"B":0,"C":6,"D":3},{"A":9,"B":0,"C":3,"D":6},{"A":9,"B":0,"C":4,"D":4},{"A":9,"B":1,"C":6,"D":1},{"A":9,"B":1,"C":3,"D":4},{"A":9,"B":1,"C":4,"D":2},{"A":9,"B":4,"C":4,"D":0},{"A":9,"B":4,"C":1,"D":3},{"A":9,"B":4,"C":2,"D":1},{"A":9,"B":1,"C":4,"D":3},{"A":9,"B":1,"C":1,"D":6},{"A":9,"B":1,"C":2,"D":4},{"A":9,"B":2,"C":4,"D":1},{"A":9,"B":2,"C":1,"D":4},{"A":9,"B":2,"C":2,"D":2},{"A":6,"B":6,"C":3,"D":3},{"A":6,"B":6,"C":0,"D":6},{"A":6,"B":6,"C":1,"D":4},{"A":6,"B":3,"C":3,"D":6},{"A":6,"B":3,"C":0,"D":9},{"A":6,"B":3,"C":1,"D":7},{"A":6,"B":4,"C":3,"D":4},{"A":6,"B":4,"C":0,"D":7},{"A":6,"B":4,"C":1,"D":5},{"A":6,"B":3,"C":6,"D":3},{"A":6,"B":3,"C":3,"D":6},{"A":6,"B":3,"C":4,"D":4},{"A":6,"B":0,"C":6,"D":6},{"A":6,"B":0,"C":3,"D":9},{"A":6,"B":0,"C":4,"D":7},{"A":6,"B":1,"C":6,"D":4},{"A":6,"B":1,"C":3,"D":7},{"A":6,"B":1,"C":4,"D":5},{"A":6,"B":4,"C":4,"D":3},{"A":6,"B":4,"C":1,"D":6},{"A":6,"B":4,"C":2,"D":4},{"A":6,"B":1,"C":4,"D":6},{"A":6,"B":1,"C":1,"D":9},{"A":6,"B":1,"C":2,"D":7},{"A":6,"B":2,"C":4,"D":4},{"A":6,"B":2,"C":1,"D":7},{"A":6,"B":2,"C":2,"D":5},{"A":7,"B":6,"C":3,"D":1},{"A":7,"B":6,"C":0,"D":4},{"A":7,"B":6,"C":1,"D":2},{"A":7,"B":3,"C":3,"D":4},{"A":7,"B":3,"C":0,"D":7},{"A":7,"B":3,"C":1,"D":5},{"A":7,"B":4,"C":3,"D":2},{"A":7,"B":4,"C":0,"D":5},{"A":7,"B":4,"C":1,"D":3},{"A":7,"B":3,"C":6,"D":1},{"A":7,"B":3,"C":3,"D":4},{"A":7,"B":3,"C":4,"D":2},{"A":7,"B":0,"C":6,"D":4},{"A":7,"B":0,"C":3,"D":7},{"A":7,"B":0,"C":4,"D":5},{"A":7,"B":1,"C":6,"D":2},{"A":7,"B":1,"C":3,"D":5},{"A":7,"B":1,"C":4,"D":3},{"A":7,"B":4,"C":4,"D":1},{"A":7,"B":4,"C":1,"D":4},{"A":7,"B":4,"C":2,"D":2},{"A":7,"B":1,"C":4,"D":4},{"A":7,"B":1,"C":1,"D":7},{"A":7,"B":1,"C":2,"D":5},{"A":7,"B":2,"C":4,"D":2},{"A":7,"B":2,"C":1,"D":5},{"A":7,"B":2,"C":2,"D":3},{"A":6,"B":6,"C":6,"D":0},{"A":6,"B":6,"C":3,"D":3},{"A":6,"B":6,"C":4,"D":1},{"A":6,"B":3,"C":6,"D":3},{"A":6,"B":3,"C":3,"D":6},{"A":6,"B":3,"C":4,"D":4},{"A":6,"B":4,"C":6,"D":1},{"A":6,"B":4,"C":3,"D":4},{"A":6,"B":4,"C":4,"D":2},{"A":6,"B":3,"C":9,"D":0},{"A":6,"B":3,"C":6,"D":3},{"A":6,"B":3,"C":7,"D":1},{"A":6,"B":0,"C":9,"D":3},{"A":6,"B":0,"C":6,"D":6},{"A":6,"B":0,"C":7,"D":4},{"A":6,"B":1,"C":9,"D":1},{"A":6,"B":1,"C":6,"D":4},{"A":6,"B":1,"C":7,"D":2},{"A":6,"B":4,"C":7,"D":0},{"A":6,"B":4,"C":4,"D":3},{"A":6,"B":4,"C":5,"D":1},{"A":6,"B":1,"C":7,"D":3},{"A":6,"B":1,"C":4,"D":6},{"A":6,"B":1,"C":5,"D":4},{"A":6,"B":2,"C":7,"D":1},{"A":6,"B":2,"C":4,"D":4},{"A":6,"B":2,"C":5,"D":2},{"A":3,"B":6,"C":6,"D":3},{"A":3,"B":6,"C":3,"D":6},{"A":3,"B":6,"C":4,"D":4},{"A":3,"B":3,"C":6,"D":6},{"A":3,"B":3,"C":3,"D":9},{"A":3,"B":3,"C":4,"D":7},{"A":3,"B":4,"C":6,"D":4},{"A":3,"B":4,"C":3,"D":7},{"A":3,"B":4,"C":4,"D":5},{"A":3,"B":3,"C":9,"D":3},{"A":3,"B":3,"C":6,"D":6},{"A":3,"B":3,"C":7,"D":4},{"A":3,"B":0,"C":9,"D":6},{"A":3,"B":0,"C":6,"D":9},{"A":3,"B":0,"C":7,"D":7},{"A":3,"B":1,"C":9,"D":4},{"A":3,"B":1,"C":6,"D":7},{"A":3,"B":1,"C":7,"D":5},{"A":3,"B":4,"C":7,"D":3},{"A":3,"B":4,"C":4,"D":6},{"A":3,"B":4,"C":5,"D":4},{"A":3,"B":1,"C":7,"D":6},{"A":3,"B":1,"C":4,"D":9},{"A":3,"B":1,"C":5,"D":7},{"A":3,"B":2,"C":7,"D":4},{"A":3,"B":2,"C":4,"D":7},{"A":3,"B":2,"C":5,"D":5},{"A":4,"B":6,"C":6,"D":1},{"A":4,"B":6,"C":3,"D":4},{"A":4,"B":6,"C":4,"D":2},{"A":4,"B":3,"C":6,"D":4},{"A":4,"B":3,"C":3,"D":7},{"A":4,"B":3,"C":4,"D":5},{"A":4,"B":4,"C":6,"D":2},{"A":4,"B":4,"C":3,"D":5},{"A":4,"B":4,"C":4,"D":3},{"A":4,"B":3,"C":9,"D":1},{"A":4,"B":3,"C":6,"D":4},{"A":4,"B":3,"C":7,"D":2},{"A":4,"B":0,"C":9,"D":4},{"A":4,"B":0,"C":6,"D":7},{"A":4,"B":0,"C":7,"D":5},{"A":4,"B":1,"C":9,"D":2},{"A":4,"B":1,"C":6,"D":5},{"A":4,"B":1,"C":7,"D":3},{"A":4,"B":4,"C":7,"D":1},{"A":4,"B":4,"C":4,"D":4},{"A":4,"B":4,"C":5,"D":2},{"A":4,"B":1,"C":7,"D":4},{"A":4,"B":1,"C":4,"D":7},{"A":4,"B":1,"C":5,"D":5},{"A":4,"B":2,"C":7,"D":2},{"A":4,"B":2,"C":4,"D":5},{"A":4,"B":2,"C":5,"D":3},{"A":7,"B":6,"C":4,"D":0},{"A":7,"B":6,"C":1,"D":3},{"A":7,"B":6,"C":2,"D":1},{"A":7,"B":3,"C":4,"D":3},{"A":7,"B":3,"C":1,"D":6},{"A":7,"B":3,"C":2,"D":4},{"A":7,"B":4,"C":4,"D":1},{"A":7,"B":4,"C":1,"D":4},{"A":7,"B":4,"C":2,"D":2},{"A":7,"B":3,"C":7,"D":0},{"A":7,"B":3,"C":4,"D":3},{"A":7,"B":3,"C":5,"D":1},{"A":7,"B":0,"C":7,"D":3},{"A":7,"B":0,"C":4,"D":6},{"A":7,"B":0,"C":5,"D":4},{"A":7,"B":1,"C":7,"D":1},{"A":7,"B":1,"C":4,"D":4},{"A":7,"B":1,"C":5,"D":2},{"A":7,"B":4,"C":5,"D":0},{"A":7,"B":4,"C":2,"D":3},{"A":7,"B":4,"C":3,"D":1},{"A":7,"B":1,"C":5,"D":3},{"A":7,"B":1,"C":2,"D":6},{"A":7,"B":1,"C":3,"D":4},{"A":7,"B":2,"C":5,"D":1},{"A":7,"B":2,"C":2,"D":4},{"A":7,"B":2,"C":3,"D":2},{"A":4,"B":6,"C":4,"D":3},{"A":4,"B":6,"C":1,"D":6},{"A":4,"B":6,"C":2,"D":4},{"A":4,"D":7},{"A":4,"B":3,"C":4,"D":4},{"A":4,"B":3,"C":1,"D":7},{"A":4,"B":3,"C":2,"D":5},{"A":5,"B":7,"C":3,"D":1},{"A":5,"B":7,"C":0,"D":4},{"A":5,"B":7,"C":1,"D":2},{"A":5,"B":4,"C":3,"D":4},{"A":5,"B":4,"C":0,"D":7},{"A":5,"B":4,"C":1,"D":5},{"A":5,"B":5,"C":3,"D":2},{"A":5,"B":5,"C":0,"D":5},{"A":5,"B":5,"C":1,"D":3},{"A":5,"B":4,"C":6,"D":1},{"A":5,"B":4,"C":3,"D":4},{"A":5,"B":4,"C":4,"D":2},{"A":5,"B":1,"C":6,"D":4},{"A":5,"B":1,"C":3,"D":7},{"A":5,"B":1,"C":4,"D":5},{"A":5,"B":2,"C":6,"D":2},{"A":5,"B":2,"C":3,"D":5},{"A":5,"B":2,"C":4,"D":3},{"A":5,"B":5,"C":4,"D":1},{"A":5,"B":5,"C":1,"D":4},{"A":5,"B":5,"C":2,"D":2},{"A":5,"B":2,"C":4,"D":4},{"A":5,"B":2,"C":1,"D":7},{"A":5,"B":2,"C":2,"D":5},{"A":5,"B":3,"C":4,"D":2},{"A":5,"B":3,"C":1,"D":5},{"A":5,"B":3,"C":2,"D":3},{"A":4,"B":7,"C":6,"D":0},{"A":4,"B":7,"C":3,"D":3},{"A":4,"B":7,"C":4,"D":1},{"A":4,"B":4,"C":6,"D":3},{"A":4,"B":4,"C":3,"D":6},{"A":4,"B":4,"C":4,"D":4},{"A":4,"B":5,"C":6,"D":1},{"A":4,"B":5,"C":3,"D":4},{"A":4,"B":5,"C":4,"D":2},{"A":4,"B":4,"C":9,"D":0},{"A":4,"B":4,"C":6,"D":3},{"A":4,"B":4,"C":7,"D":1},{"A":4,"B":1,"C":9,"D":3},{"A":4,"B":1,"C":6,"D":6},{"A":4,"B":1,"C":7,"D":4},{"A":4,"B":2,"C":9,"D":1},{"A":4,"B":2,"C":6,"D":4},{"A":4,"B":2,"C":7,"D":2},{"A":4,"B":5,"C":7,"D":0},{"A":4,"B":5,"C":4,"D":3},{"A":4,"B":5,"C":5,"D":1},{"A":4,"B":2,"C":7,"D":3},{"A":4,"B":2,"C":4,"D":6},{"A":4,"B":2,"C":5,"D":4},{"A":4,"B":3,"C":7,"D":1},{"A":4,"B":3,"C":4,"D":4},{"A":4,"B":3,"C":5,"D":2},{"A":1,"B":7,"C":6,"D":3},{"A":1,"B":7,"C":3,"D":6},{"A":1,"B":7,"C":4,"D":4},{"A":1,"B":4,"C":6,"D":6},{"A":1,"B":4,"C":3,"D":9},{"A":1,"B":4,"C":4,"D":7},{"A":1,"B":5,"C":6,"D":4},{"A":1,"B":5,"C":3,"D":7},{"A":1,"B":5,"C":4,"D":5},{"A":1,"B":4,"C":9,"D":3},{"A":1,"B":4,"C":6,"D":6},{"A":1,"B":4,"C":7,"D":4},{"A":1,"B":1,"C":9,"D":6},{"A":1,"B":1,"C":6,"D":9},{"A":1,"B":1,"C":7,"D":7},{"A":1,"B":2,"C":9,"D":4},{"A":1,"B":2,"C":6,"D":7},{"A":1,"B":2,"C":7,"D":5},{"A":1,"B":5,"C":7,"D":3},{"A":1,"B":5,"C":4,"D":6},{"A":1,"B":5,"C":5,"D":4},{"A":1,"B":2,"C":7,"D":6},{"A":1,"B":2,"C":4,"D":9},{"A":1,"B":2,"C":5,"D":7},{"A":1,"B":3,"C":7,"D":4},{"A":1,"B":3,"C":4,"D":7},{"A":1,"B":3,"C":5,"D":5},{"A":2,"B":7,"C":6,"D":1},{"A":2,"B":7,"C":3,"D":4},{"A":2,"B":7,"C":4,"D":2},{"A":2,"B":4,"C":6,"D":4},{"A":2,"B":4,"C":3,"D":7},{"A":2,"B":4,"C":4,"D":5},{"A":2,"B":5,"C":6,"D":2},{"A":2,"B":5,"C":3,"D":5},{"A":2,"B":5,"C":4,"D":3},{"A":2,"B":4,"C":9,"D":1},{"A":2,"B":4,"C":6,"D":4},{"A":2,"B":4,"C":7,"D":2},{"A":2,"B":1,"C":9,"D":4},{"A":2,"B":1,"C":6,"D":7},{"A":2,"B":1,"C":7,"D":5},{"A":2,"B":2,"C":9,"D":2},{"A":2,"B":2,"C":6,"D":5},{"A":2,"B":2,"C":7,"D":3},{"A":2,"B":5,"C":7,"D":1},{"A":2,"B":5,"C":4,"D":4},{"A":2,"B":5,"C":5,"D":2},{"A":2,"B":2,"C":7,"D":4},{"A":2,"B":2,"C":4,"D":7},{"A":2,"B":2,"C":5,"D":5},{"A":2,"B":3,"C":7,"D":2},{"A":2,"B":3,"C":4,"D":5},{"A":2,"B":3,"C":5,"D":3},{"A":5,"B":7,"C":4,"D":0},{"A":5,"B":7,"C":1,"D":3},{"A":5,"B":7,"C":2,"D":1},{"A":5,"B":4,"C":4,"D":3},{"A":5,"B":4,"C":1,"D":6},{"A":5,"B":4,"C":2,"D":4},{"A":5,"B":5,"C":4,"D":1},{"A":5,"B":5,"C":1,"D":4},{"A":5,"B":5,"C":2,"D":2},{"A":5,"B":4,"C":7,"D":0},{"A":5,"B":4,"C":4,"D":3},{"A":5,"B":4,"C":5,"D":1},{"A":5,"B":1,"C":7,"D":3},{"A":5,"B":1,"C":4,"D":6},{"A":5,"B":1,"C":5,"D":4},{"A":5,"B":2,"C":7,"D":1},{"A":5,"B":2,"C":4,"D":4},{"A":5,"B":2,"C":5,"D":2},{"A":5,"B":5,"C":5,"D":0},{"A":5,"B":5,"C":2,"D":3},{"A":5,"B":5,"C":3,"D":1},{"A":5,"B":2,"C":5,"D":3},{"A":5,"B":2,"C":2,"D":6},{"A":5,"B":2,"C":3,"D":4},{"A":5,"B":3,"C":5,"D":1},{"A":5,"B":3,"C":2,"D":4},{"A":5,"B":3,"C":3,"D":2},{"A":2,"B":7,"C":4,"D":3},{"A":2,"B":7,"C":1,"D":6},{"A":2,"B":7,"C":2,"D":4},{"A":2,"B":4,"C":4,"D":6},{"A":2,"B":4,"C":1,"D":9},{"A":2,"B":4,"C":2,"D":7},{"A":2,"B":5,"C":4,"D":4},{"A":2,"B":5,"C":1,"D":7},{"A":2,"B":5,"C":2,"D":5},{"A":2,"B":4,"C":7,"D":3},{"A":2,"B":4,"C":4,"D":6},{"A":2,"B":4,"C":5,"D":4},{"A":2,"B":1,"C":7,"D":6},{"A":2,"B":1,"C":4,"D":9},{"A":2,"B":1,"C":5,"D":7},{"A":2,"B":2,"C":7,"D":4},{"A":2,"B":2,"C":4,"D":7},{"A":2,"B":2,"C":5,"D":5},{"A":2,"B":5,"C":5,"D":3},{"A":2,"B":5,"C":2,"D":6},{"A":2,"B":5,"C":3,"D":4},{"A":2,"B":2,"C":5,"D":6},{"A":2,"B":2,"C":2,"D":9},{"A":2,"B":2,"C":3,"D":7},{"A":2,"B":3,"C":5,"D":4},{"A":2,"B":3,"C":2,"D":7},{"A":2,"B":3,"C":3,"D":5},{"A":3,"B":7,"C":4,"D":1},{"A":3,"B":7,"C":1,"D":4},{"A":3,"B":7,"C":2,"D":2},{"A":3,"B":4,"C":4,"D":4},{"A":3,"B":4,"C":1,"D":7},{"A":3,"B":4,"C":2,"D":5},{"A":3,"B":5,"C":4,"D":2},{"A":3,"B":5,"C":1,"D":5},{"A":3,"B":5,"C":2,"D":3},{"A":3,"B":4,"C":7,"D":1},{"A":3,"B":4,"C":4,"D":4},{"A":3,"B":4,"C":5,"D":2},{"A":3,"B":1,"C":7,"D":4},{"A":3,"B":1,"C":4,"D":7},{"A":3,"B":1,"C":5,"D":5},{"A":3,"B":2,"C":7,"D":2},{"A":3,"B":2,"C":4,"D":5},{"A":3,"B":2,"C":5,"D":3},{"A":3,"B":5,"C":5,"D":1},{"A":3,"B":5,"C":2,"D":4},{"A":3,"B":5,"C":3,"D":2},{"A":3,"B":2,"C":5,"D":4},{"A":3,"B":2,"C":2,"D":7},{"A":3,"B":2,"C":3,"D":5},{"A":3,"B":3,"C":5,"D":2},{"A":3,"B":3,"C":2,"D":5},{"A":3,"B":3,"C":3,"D":3}]}
2. Here is the algorithm I used to find the solutions, if anyone is interested: https://jsfiddle.net/#&togetherjs=g9lJnsbJrI