• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 22:54
CEST 04:54
KST 11:54
  • 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
[ASL19] Finals Recap: Standing Tall9HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Flash Announces Hiatus From ASL50Weekly Cups (June 23-29): Reynor in world title form?12FEL Cracov 2025 (July 27) - $8000 live event16Esports World Cup 2025 - Final Player Roster16Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
The GOAT ranking of GOAT rankings The SCII GOAT: A statistical Evaluation Statistics for vetoed/disliked maps Esports World Cup 2025 - Final Player Roster How does the number of casters affect your enjoyment of esports?
Tourneys
RSL: Revival, a new crowdfunded tournament series [GSL 2025] Code S: Season 2 - Semi Finals & Finals $5,100+ SEL Season 2 Championship (SC: Evo) FEL Cracov 2025 (July 27) - $8000 live event HomeStory Cup 27 (June 27-29)
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
Player “Jedi” cheat on CSL Help: rep cant save Flash Announces Hiatus From ASL BGH Auto Balance -> http://bghmmr.eu/ [ASL19] Finals Recap: Standing Tall
Tourneys
[Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET The Casual Games of the Week Thread
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile What do you want from future RTS games? Beyond All Reason
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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Trading/Investing Thread The Games Industry And ATVI
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2025 Football Thread NBA General Discussion Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Blogs
Culture Clash in Video Games…
TrAiDoS
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 615 users

Math Question?

Blogs > Salv
Post a Reply
1 2 Next All
Salv
Profile Blog Joined December 2007
Canada3083 Posts
January 29 2008 04:25 GMT
#1
Got an exam tomorrow morning, in 9hours to be exact ^^, I know I know how to do this, but I can't remember how haha. It's permutations, anyone good at math who could help me out i'l give you a gold star?

OK, question reads:

Sung (nice name btw) is 5blocks east and 4 blocks south of her friend's home. How Mmany different routes are possible if she walks only west or north?

*****
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
Last Edited: 2008-01-29 04:34:12
January 29 2008 04:28 GMT
#2
Pretty sure it has to do with the Catalan numbers. I'll go look.

Err, I guess not.

My noob stab at it:

The path will always be 9 blocks long (displacement is 5 + 4). There will be only 2 choices at most for each step (N or W?). Therefore, an upper limit will be 2^9 routes.

However, at the 4 spots South of Sung's friend's house, there is only 1 choice (go North), and same with the 5 spots East of the house (go West).

Dunno how to account for those.
Compilers are like boyfriends, you miss a period and they go crazy on you.
Salv
Profile Blog Joined December 2007
Canada3083 Posts
January 29 2008 04:31 GMT
#3
Thanks, best I came up with is that Sung needs to walk 5 blocks north and 4 blocks west, it is a must. That's it :S
Salv
Profile Blog Joined December 2007
Canada3083 Posts
January 29 2008 04:36 GMT
#4
I was thinking it was 9factorial divided by 5factorial times 4factorial?

Not sure ;S
ShaLLoW[baY]
Profile Blog Joined January 2007
Canada12499 Posts
Last Edited: 2008-01-29 04:45:04
January 29 2008 04:40 GMT
#5
I'm not sure how to explain it, but it's a Pascal's Triangle variation I think? I suck though, so don't quote me on that. I think it ends up being 126.

1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
1 6 15 20 15 6 1
1 7 21 35 35 21 7 1
1 8 28 56 70 56 28 8 1
1 9 36 84 126 126 84 36 9 1

I think that's how pascal's triangle goes?
ALEXISONFIRE ARE FUCKING BACK (sAviOr for life)
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
Last Edited: 2008-01-29 04:59:28
January 29 2008 04:44 GMT
#6
erroneous reasoning removed for anti-clutter and embarrassment.
Compilers are like boyfriends, you miss a period and they go crazy on you.
Salv
Profile Blog Joined December 2007
Canada3083 Posts
January 29 2008 04:49 GMT
#7
Well, I was thinking that there is nine ways (5norths, 4wests) and you need all nine of them to complete the trip. But the order you put the wests in doesn't matter, neither do the norths, they are simply norths. So 9! is the answer, but we have to takeout the number of times that would account for west(1) and west(2) being counted as two seperate routes if they reversed position.

It is hard to explain, but I am fairly certain this is correct? Any verification?
fusionsdf
Profile Blog Joined June 2006
Canada15390 Posts
January 29 2008 04:49 GMT
#8
hahaha
I remember this problem.

If you cant figure it out, draw out a grid and list the various paths. Theres a pattern, but I forget how it goes. but if you do the diagram it should be obvious
SKT_Best: "I actually chose Protoss because it was so hard for me to defeat Protoss as a Terran. When I first started Brood War, my main race was Terran."
Salv
Profile Blog Joined December 2007
Canada3083 Posts
January 29 2008 04:49 GMT
#9
On January 29 2008 13:40 ShaLLoW[baY] wrote:
I'm not sure how to explain it, but it's a Pascal's Triangle variation I think? I suck though, so don't quote me on that. I think it ends up being 126.

1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
1 6 15 20 15 6 1
1 7 21 35 35 21 7 1
1 8 28 56 70 56 28 8 1
1 9 36 84 126 126 84 36 9 1

I think that's how pascal's triangle goes?


I think I remember the answer actually being 126 :O, could you explain this further?
ShaLLoW[baY]
Profile Blog Joined January 2007
Canada12499 Posts
Last Edited: 2008-01-29 04:55:56
January 29 2008 04:53 GMT
#10
[image loading]

You start by placing a 1 next to each intersection at the bottom and right sides as there is only one possible way to reach each of those squares.

You then add the numbers on either side of the intersection to get how many possible ways there are to reach that intersection. (bit confusing, look at how I did 1 + 1 = 2 for the bottom right, then 2 + 1 = 3 for the one above it, cont. until you reach the end)

Man I'm bad at explaining things :p

Obviously you start at the bottom right, and only add upwards and leftwards as you can only walk west and north.
ALEXISONFIRE ARE FUCKING BACK (sAviOr for life)
imDerek
Profile Blog Joined August 2007
United States1944 Posts
January 29 2008 04:55 GMT
#11
Hi,

the method I would use is called block-walking. so consider a coordinate system where (0,0) is where you start from and (5,4) is your ending location. the south direction is set to the +y direction for convinience. since the person can only walk east or south, the calculation is nice.

observe that there is only 1 way to walk from (0,0) -> (1,0) and only 1 way to walk from (0,0) -> (0,1).

now note that you can only go to (1,1) from either (0,1) or (1,0). and since there is only 1 way to get to (0,1) and 1 way to get to (1,0), there is a total of 1+1=2 ways to get to (1,1).

in general, the number of ways to get to (m,n) = number of ways to get to (m-1,n) + number of ways to get to (m, n-1). So this is a recursion. just make a 4x5 grid and do it real quick, and you should get 126.
Least favorite progamers: Leta, Zero, Mind, Shine, free, really <-- newly added
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
January 29 2008 04:56 GMT
#12
Awesome visualization. The 1-6 and 1-5 for the bottom row and rightmost column are obvious. It's then obvious that for every other cell, the number of ways to get there is the number of ways to get to the cell to the East, plus the number of cells to the South. Which happens to be Pascal's triangle.
Compilers are like boyfriends, you miss a period and they go crazy on you.
ShaLLoW[baY]
Profile Blog Joined January 2007
Canada12499 Posts
January 29 2008 04:57 GMT
#13
Yay! I know what I'm talking about for once! <3
ALEXISONFIRE ARE FUCKING BACK (sAviOr for life)
Salv
Profile Blog Joined December 2007
Canada3083 Posts
January 29 2008 04:58 GMT
#14
Wow, nice guys, thanks for the help, I have two great methods to do this question .

Mad props to you both! :D
imDerek
Profile Blog Joined August 2007
United States1944 Posts
January 29 2008 05:01 GMT
#15
the pascal's triangle goes like this

let x be the vector <0,1> and y be the vector <1,0>. you will need 5 y's and 4 x's to get to the point (5,4) and you can arrange them any way you like. so the answer is precisely 9! / (5!*4!).
Least favorite progamers: Leta, Zero, Mind, Shine, free, really <-- newly added
FieryBalrog
Profile Blog Joined July 2007
United States1381 Posts
January 29 2008 05:18 GMT
#16
Add up the number of blocks total. In this case its 9. Go to the 9th power row (10th row, since it starts at 0th power) of the Pascal's triangle. Find the middle number, or the pair of middle numbers. That number is the number of ways to get there.

So yea its 126.
I will eat you alive
Day[9]
Profile Blog Joined April 2003
United States7366 Posts
January 29 2008 05:25 GMT
#17
i can explain this VERY VERY VERY easily. this is a simple combinatorics problem:

you can view your path as a series of W (west) and N (north) moves. For example, a legit enumeration of a path would be " W W W N N W W N N ". Or, we could go "N N N N W W W W W ". We are happy with both because (in the end) there are 5 west moves total and 4 north moves total. So, lets count the total number of enumerated paths!

Since we have NINE TOTAL MOVES, we can simply CHOOSE when to take our FIVE WEST MOVES and the north moves are fixed. For example, if we decided to go "W W W _ _ W W _ _ " we know that all the underscores MUST be north moves (as we have performed all our west moves). Therefore, the total number of unique paths is (9 choose 5) = 9! / (4!5!). (if you didn't know the binomial coefficient (9 choose 5) is the 5th element on the 9th row of pascals triangle).

tada!

god damn i'm good
Whenever I encounter some little hitch, or some of my orbs get out of orbit, nothing pleases me so much as to make the crooked straight and crush down uneven places. www.day9.tv
ShaLLoW[baY]
Profile Blog Joined January 2007
Canada12499 Posts
January 29 2008 05:25 GMT
#18
Pff, my drawing is sexier.
+ Show Spoiler +
<3
ALEXISONFIRE ARE FUCKING BACK (sAviOr for life)
Day[9]
Profile Blog Joined April 2003
United States7366 Posts
January 29 2008 05:26 GMT
#19
my solution is way better than everyone else's yucky brute force or induction (EWW INDUCTION)
Whenever I encounter some little hitch, or some of my orbs get out of orbit, nothing pleases me so much as to make the crooked straight and crush down uneven places. www.day9.tv
ShaLLoW[baY]
Profile Blog Joined January 2007
Canada12499 Posts
January 29 2008 05:29 GMT
#20
On January 29 2008 13:36 Salv wrote:
I was thinking it was 9factorial divided by 5factorial times 4factorial?

Not sure ;S


I just realized that you had it right from the very beginning O_o
ALEXISONFIRE ARE FUCKING BACK (sAviOr for life)
1 2 Next All
Please log in or register to reply.
Live Events Refresh
Replay Cast
00:00
HSC 27: Groups C
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
NeuroSwarm 378
Nina 239
CosmosSc2 44
StarCraft: Brood War
Aegong 116
Zeus 42
NaDa 39
Icarus 9
Dota 2
monkeys_forever122
League of Legends
JimRising 982
Super Smash Bros
hungrybox754
Other Games
summit1g8938
shahzam1160
ViBE263
Mew2King79
Organizations
Other Games
BasetradeTV95
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Azhi_Dahaki33
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Doublelift6261
• Jankos1614
• masondota2652
Upcoming Events
RSL Revival
7h 6m
herO vs SHIN
Reynor vs Cure
OSC
10h 6m
WardiTV European League
13h 6m
Scarlett vs Percival
Jumy vs ArT
YoungYakov vs Shameless
uThermal vs Fjant
Nicoract vs goblin
Harstem vs Gerald
FEL
13h 6m
Korean StarCraft League
1d
CranKy Ducklings
1d 7h
RSL Revival
1d 7h
FEL
1d 13h
RSL Revival
2 days
FEL
2 days
[ Show More ]
BSL: ProLeague
2 days
Dewalt vs Bonyth
Replay Cast
3 days
Sparkling Tuna Cup
4 days
The PondCast
5 days
Replay Cast
5 days
RSL Revival
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2025-06-28
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025

Upcoming

2025 ACS Season 2: Qualifier
CSLPRO Last Chance 2025
2025 ACS Season 2
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
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 © 2025 TLnet. All Rights Reserved.