• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 08:40
CET 14:40
KST 22:40
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
SC2 All-Star Invitational: Tournament Preview3RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2
Community News
BSL Season 2025 - Full Overview and Conclusion3Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets4$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)15Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns7[BSL21] Non-Korean Championship - Starts Jan 104
StarCraft 2
General
SC2 All-Star Invitational: Tournament Preview Stellar Fest "01" Jersey Charity Auction Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets When will we find out if there are more tournament SC2 Spotted on the EWC 2026 list?
Tourneys
SC2 All-Star Invitational: Jan 17-18 OSC Season 13 World Championship SC2 AI Tournament 2026 Sparkling Tuna Cup - Weekly Open Tournament $21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)
Strategy
Simple Questions Simple Answers
Custom Maps
Map Editor closed ?
External Content
Mutation # 508 Violent Night Mutation # 507 Well Trained Mutation # 506 Warp Zone Mutation # 505 Rise From Ashes
Brood War
General
BW General Discussion BSL Season 2025 - Full Overview and Conclusion [ASL21] Potential Map Candidates BGH Auto Balance -> http://bghmmr.eu/ StarCraft & BroodWar Campaign Speedrun Quest
Tourneys
[BSL21] Non-Korean Championship - Starts Jan 10 Small VOD Thread 2.0 Azhi's Colosseum - Season 2 [Megathread] Daily Proleagues
Strategy
Soma's 9 hatch build from ASL Game 2 Simple Questions, Simple Answers Game Theory for Starcraft Current Meta
Other Games
General Games
Stormgate/Frost Giant Megathread Beyond All Reason Awesome Games Done Quick 2026! Nintendo Switch Thread Mechabellum
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Canadian Politics Mega-thread European Politico-economics QA Mega-thread Things Aren’t Peaceful in Palestine
Fan Clubs
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
My 2025 Magic: The Gathering…
DARKING
Physical Exercise (HIIT) Bef…
TrAiDoS
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
James Bond movies ranking - pa…
Topin
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2376 users

Question for maths geniuses

Blogs > deathly rat
Post a Reply
deathly rat
Profile Blog Joined October 2010
United Kingdom911 Posts
April 17 2012 02:04 GMT
#1
I was thinking about the match-ups in Starcraft and visualizing them as a Triangle where all the lines connecting the corners represent the possible match-ups, plus adding the number of corners to represent the mirror matches. Then I thought about how a square and a pentagon would also show the number of different match-ups if you had 4 or 5 races respectively.

Then I noticed that the number of match-ups increases in the sequence 1,3, 6, 10, 15 etc which is the same way the number of balls in a pool table increase with each row added. It's obviously 1 + 2 + 3 + 4 + 5 etc. See picture below.[image loading]

My question is, what has the number of permutations got to do with how the balls make up the triangle? Explain this to me with maths please.

*****
No logo (logo)
infinitestory
Profile Blog Joined April 2010
United States4053 Posts
April 17 2012 02:08 GMT
#2
say there are n factions
pick 1st faction: n ways
pick a different faction: n-1 ways
each matchup will be counted twice, hence n(n-1)/2 for all non-mirrors, which is also the triangle numbers formula
Translator:3
deathly rat
Profile Blog Joined October 2010
United Kingdom911 Posts
April 17 2012 02:34 GMT
#3
The number in the triangles includes the mirror matches, so it would be n(n-1)/2 + n. You got the right formula, but I don't understand it, or what this has to do with the triangles.
No logo (logo)
Myrddraal
Profile Joined December 2010
Australia937 Posts
April 17 2012 03:10 GMT
#4
Not really explaining it with maths, but this is how it makes sense to me. Each row you add, you are adding the same amount as was in the previous row + 1, meaning you are accounting for each non mirror +1 for the mirror.

0
0 + 1 = 1
1 + 1 = 2
2 + 1 = 3
3 + 1 = 4
4 + 1 = 5
[stranded]: http://www.indiedb.com/games/stranded
Anacletus
Profile Blog Joined April 2012
United States733 Posts
April 17 2012 03:39 GMT
#5
The above equations ar ecorrect, and I'd like to expand upon them. You should notice that the area increases exponentially as you add items. You should also notice that any side is equal to the number of items, and going from that chosen side across is one less than the previous. This is because as mentioned in previous posts you don't repeat a permutation if it has already been done but in the opposite order; example: (using your example of race match ups) ZvT =TvZ.

Basically compare each row as one race vs the others and move up from there removing duplicates.




PvP
ZvZ + ZvP
TvZ + TvT + TvP

Does that help explain this concept?

Sorry if my post is sloppy - it was painstakingly made via android phone - feel free to pm me if you had any other questions

Happy posting!
http://talk-to-stimey-please.1324083.n2.nabble.com/
EtherealDeath
Profile Blog Joined July 2007
United States8366 Posts
April 17 2012 03:48 GMT
#6
The summation simply matches that for the triangular numbers is all, due to non-repetition of matchups essentially turning a combinatorics problem into a sum of successive integers starting from 1 (thus the triangular numbers appear).
Nehsb
Profile Joined May 2009
United States380 Posts
Last Edited: 2012-04-17 04:26:42
April 17 2012 04:24 GMT
#7
Here's a combinatorial bijection if you're familiar with bijections: (taken from http://mathoverflow.net/questions/8846/proofs-without-words) If you're not, bijections work to show that two sets A, B have equal size by pairing elements from A with elements in B; If you can pair all the elements in A with elements in B and have none left over, then the sets have equal size.

[image loading]

For every yellow ball in the picture, it corresponds to a choice of "matchup" between two of the purple balls at the bottom. So the number of matchups will equal the number of yellow balls.

Heres another way that might or might not be more clear for you (It's essentially the same thing, but the different presentation might help some)

A
B x
C x x
D x x x
o A B C D

In this, if you want to look at say the matchup between B and C, then there's exactly one x in the chart that has row/column B and C. Same for any other matchup, so the number of matchups = number of x's.

(Sorry, I'm really tired so I might be explaining things horribly.)
xxpack09
Profile Blog Joined September 2010
United States2160 Posts
Last Edited: 2012-04-17 08:31:16
April 17 2012 05:21 GMT
#8
It's part of a larger pattern that can be seen in Pascal's triangle.

[image loading]

Look at the diagonals. One goes 1,1,1,1,1... the next 1,2,3,4,5... the next 1,3,6,10,15... the next 1,4,10,20,35.... etc.

The nth element in the mth diagonal represents the number of combinations in a game with n races and (m-1) simultaneous players. So for starcraft, we have 2 players (3rd diagonal) and 3 races (3rd element) which = 6.
Rannasha
Profile Blog Joined August 2010
Netherlands2398 Posts
April 17 2012 08:14 GMT
#9
On April 17 2012 12:39 Anacletus wrote:
The above equations ar ecorrect, and I'd like to expand upon them. You should notice that the area increases exponentially as you add items


It increases quadratically, which is far from exponentially.
Such flammable little insects!
allluckysevens7777
Profile Joined February 2009
United States53 Posts
April 17 2012 11:27 GMT
#10
If you want arithmetical reasoning, you're doing (n choose 2) + n to find the number of matchups (n choose 2 for non-mirror, plus n mirrors). n choose r is n!/(r!(n-r)!), where ! denotes the usual factorial. n choose 2 happens to work out to n(n-1)/2. Adding n, you have (n(n-1)+2n)/2 = n(n+1)/2, which can easily be shown by induction (or informally by gauss' pairing argument) to be the sum of the numbers from 1 to n inclusive, a triangle number.
deathly rat
Profile Blog Joined October 2010
United Kingdom911 Posts
Last Edited: 2012-04-17 11:48:14
April 17 2012 11:31 GMT
#11
Nice, thankyou maths enthusiasts. This is all very interesting

No logo (logo)
Anacletus
Profile Blog Joined April 2012
United States733 Posts
April 17 2012 11:47 GMT
#12
On April 17 2012 17:14 Rannasha wrote:
Show nested quote +
On April 17 2012 12:39 Anacletus wrote:
The above equations ar ecorrect, and I'd like to expand upon them. You should notice that the area increases exponentially as you add items


It increases quadratically, which is far from exponentially.


Yeah my mistake, I was pretty tired when posting and was doing my best to exemplify the situation in terms that would be familiar to him thus the given parameters and unit names and just overlooked some technical vocabulary. My bad!
http://talk-to-stimey-please.1324083.n2.nabble.com/
deathly rat
Profile Blog Joined October 2010
United Kingdom911 Posts
April 17 2012 12:41 GMT
#13
On April 17 2012 11:08 infinitestory wrote:
say there are n factions
pick 1st faction: n ways
pick a different faction: n-1 ways
each matchup will be counted twice, hence n(n-1)/2 for all non-mirrors, which is also the triangle numbers formula


ok, I was trying to understand why this formula works, and I made this picture which helped me visualise it.

[image loading]
No logo (logo)
Glacierz
Profile Blog Joined May 2010
United States1245 Posts
Last Edited: 2012-04-17 16:13:49
April 17 2012 16:00 GMT
#14
Proof by induction:
Base case: 1 race, 1 matchup (mirror)
Assume there are n races, adding 1 more race creates n+1 number of additional matchups, therefore forming a triangle.

Pretty simple math, no need for complex diagrams

If you are looking for formula:
for n races, the number of matchups are:
(1+n)*n/2
Please log in or register to reply.
Live Events Refresh
uThermal 2v2 Circuit
12:00
Bonus Cup #1
uThermal496
IndyStarCraft 260
SteadfastSC100
MindelVK14
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
uThermal 496
Lowko368
IndyStarCraft 264
SteadfastSC 100
BRAT_OK 90
MindelVK 18
StarCraft: Brood War
Sea 5876
Rain 3353
Calm 2671
Horang2 917
BeSt 868
EffOrt 825
Rush 344
ggaemo 291
firebathero 259
Mong 213
[ Show more ]
Last 183
Zeus 165
Pusan 131
Hyun 116
Hm[arnc] 98
Mind 93
Killer 88
Aegong 88
Bonyth 84
JYJ 59
Barracks 58
Nal_rA 55
Shuttle 42
910 41
ToSsGirL 35
Free 33
Sexy 28
zelot 27
HiyA 22
GoRush 16
scan(afreeca) 16
Bale 14
Sacsri 13
Terrorterran 13
SilentControl 8
Dota 2
Gorgc4792
qojqva1191
XcaliburYe251
syndereN140
League of Legends
rGuardiaN48
Counter-Strike
zeus1010
oskar109
Heroes of the Storm
Khaldor188
Other Games
singsing2032
B2W.Neo1265
Pyrionflax393
crisheroes327
Sick192
Fuzer 102
Hui .70
Organizations
Other Games
gamesdonequick2375
StarCraft 2
WardiTV1090
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• StrangeGG 71
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV361
League of Legends
• Jankos3203
• TFBlade1059
Upcoming Events
AI Arena Tournament
6h 20m
BSL 21
6h 20m
Mihu vs eOnzErG
Dewalt vs Sziky
Bonyth vs DuGu
XuanXuan vs eOnzErG
Dewalt vs eOnzErG
All-Star Invitational
12h 35m
MMA vs DongRaeGu
Rogue vs Oliveira
Sparkling Tuna Cup
20h 20m
OSC
22h 20m
BSL 21
1d 6h
Bonyth vs Sziky
Mihu vs QiaoGege
Sziky vs XuanXuan
eOnzErG vs QiaoGege
Mihu vs DuGu
Dewalt vs Bonyth
Replay Cast
1d 19h
Wardi Open
1d 22h
Monday Night Weeklies
2 days
The PondCast
3 days
[ Show More ]
Replay Cast
5 days
Big Brain Bouts
6 days
Serral vs TBD
Liquipedia Results

Completed

Escore Tournament S1: W4
Big Gabe Cup #3
NA Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
BSL 21 Non-Korean Championship
CSL 2025 WINTER (S19)
KCM Race Survival 2026 Season 1
OSC Championship Season 13
SC2 All-Star Inv. 2025
Underdog Cup #3
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025

Upcoming

Escore Tournament S1: W5
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Rongyi Cup S3
Nations Cup 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.