• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 18:25
CEST 00:25
KST 07:25
  • 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
Maestros of the Game: Week 1/Play-in Preview2[ASL20] Ro24 Preview Pt2: Take-Off7[ASL20] Ro24 Preview Pt1: Runway132v2 & SC: Evo Complete: Weekend Double Feature4Team Liquid Map Contest #21 - Presented by Monster Energy9
Community News
Weekly Cups (Aug 18-24): herO dethrones MaxPax6Maestros of The Game—$20k event w/ live finals in Paris34Weekly Cups (Aug 11-17): MaxPax triples again!13Weekly Cups (Aug 4-10): MaxPax wins a triple6SC2's Safe House 2 - October 18 & 195
StarCraft 2
General
Maestros of the Game: Week 1/Play-in Preview BoxeR's Wings Episode 2 - Fan Translation Greatest Players of All Time: 2025 Update A Eulogy for the Six Pool #1: Maru - Greatest Players of All Time
Tourneys
LiuLi Cup - August 2025 Tournaments $5,000 WardiTV Summer Championship 2025 Maestros of The Game—$20k event w/ live finals in Paris $5,100+ SEL Season 2 Championship (SC: Evo) Esports World Cup 2025
Strategy
Custom Maps
External Content
Mutation # 488 What Goes Around Mutation # 487 Think Fast Mutation # 486 Watch the Skies Mutation # 485 Death from Below
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ Post ASL20 Ro24 discussion. Easiest luckies way to get out of Asl groups BW General Discussion No Rain in ASL20?
Tourneys
[IPSL] CSLAN Review and CSLPRO Reimagined! [ASL20] Ro24 Group F [ASL20] Ro24 Group E [ASL20] Ro24 Group D
Strategy
Muta micro map competition Simple Questions, Simple Answers Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
Stormgate/Frost Giant Megathread Mechabellum Nintendo Switch Thread General RTS Discussion Thread Dawn of War IV
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 Canadian Politics Mega-thread Russo-Ukrainian War Thread The year 2050
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s) Gtx660 graphics card replacement
TL Community
The Automated Ban List TeamLiquid Team Shirt On Sale
Blogs
Lemme tell you a thing o…
JoinTheRain
How Culture and Conflict Imp…
TrAiDoS
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
INDEPENDIENTE LA CTM
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 854 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
Next event in 5m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nathanias 134
StarCraft: Brood War
Shuttle 608
ZZZero.O 54
NaDa 19
Dota 2
syndereN519
capcasts108
Counter-Strike
Stewie2K552
Foxcn252
Super Smash Bros
hungrybox310
Chillindude30
Heroes of the Storm
Liquid`Hasu385
Other Games
tarik_tv26292
gofns15710
summit1g3814
FrodaN2241
Grubby1853
fl0m966
KnowMe288
RotterdaM260
C9.Mang0116
ViBE46
PPMD13
ProTech6
Organizations
Other Games
gamesdonequick1231
BasetradeTV14
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 20 non-featured ]
StarCraft 2
• davetesta71
• LUISG 39
• RyuSc2 28
• poizon28 3
• IndyKCrew
• Migwel
• sooper7s
• AfreecaTV YouTube
• intothetv
• Kozan
• LaughNgamezSOOP
StarCraft: Brood War
• blackmanpl 31
• iopq 1
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota22056
League of Legends
• Doublelift3617
Other Games
• imaqtpie763
• Scarra563
Upcoming Events
Code For Giants Cup
5m
SC Evo League
13h 35m
TaeJa vs Cure
Rogue vs threepoint
ByuN vs Creator
MaNa vs Classic
Maestros of the Game
17h 35m
ShoWTimE vs Cham
GuMiho vs Ryung
Zoun vs Spirit
Rogue vs MaNa
[BSL 2025] Weekly
19h 35m
SC Evo League
1d 13h
Maestros of the Game
1d 17h
SHIN vs Creator
Astrea vs Lambo
Bunny vs SKillous
HeRoMaRinE vs TriGGeR
BSL Team Wars
1d 20h
Team Bonyth vs Team Sziky
BSL Team Wars
1d 20h
Team Dewalt vs Team Sziky
Monday Night Weeklies
2 days
Replay Cast
3 days
[ Show More ]
Sparkling Tuna Cup
3 days
PiGosaur Monday
4 days
LiuLi Cup
4 days
Replay Cast
5 days
The PondCast
5 days
RSL Revival
5 days
Maru vs SHIN
MaNa vs MaxPax
RSL Revival
6 days
Reynor vs Astrea
Classic vs sOs
BSL Team Wars
6 days
Team Bonyth vs Team Dewalt
Liquipedia Results

Completed

CSL Season 18: Qualifier 1
WardiTV Summer 2025
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
Acropolis #4 - TS1
CSL Season 18: Qualifier 2
SEL Season 2 Championship
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

CSL 2025 AUTUMN (S18)
LASL Season 20
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
Maestros of the Game
EC S1
Sisters' Call Cup
Skyesports Masters 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
MESA Nomadic Masters Fall
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
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.