• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 11:31
CEST 17:31
KST 00:31
  • 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
Code S Season 1 - RO8 Preview4[ASL21] Ro8 Preview Pt2: Progenitors8Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun13[ASL21] Ro8 Preview Pt1: Inheritors16[ASL21] Ro16 Preview Pt2: All Star10
Community News
Maestros of The Game 2 announcement and schedule !7Weekly Cups (April 27-May 4): Clem takes triple0RSL Revival: Season 5 - Qualifiers and Main Event12Code S Season 1 (2026) - RO12 Results12026 GSL Season 1 Qualifiers25
StarCraft 2
General
Code S Season 1 - RO8 Preview Behind the Blue - Team Liquid History Book Weekly Cups (April 27-May 4): Clem takes triple Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Code S Season 1 (2026) - RO12 Results
Tourneys
Maestros of The Game 2 announcement and schedule ! GSL Code S Season 1 (2026) Sea Duckling Open (Global, Bronze-Diamond) RSL Revival: Season 5 - Qualifiers and Main Event Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players
External Content
Mutation # 524 Death and Taxes The PondCast: SC2 News & Results Mutation # 523 Firewall Mutation # 522 Flip My Base
Brood War
General
Do we have a pimpest plays list? Why there arent any 256x256 pro maps? BGH Auto Balance -> http://bghmmr.eu/ (Spoiler) Asl ro8 D winner interview BW General Discussion
Tourneys
Escore Tournament StarCraft Season 2 [ASL21] Ro8 Day 4 Small VOD Thread 2.0 [BSL22] RO16 Group Stage - 02 - 10 May
Strategy
Simple Questions, Simple Answers Fighting Spirit mining rates What's the deal with APM & what's its true value Any training maps people recommend?
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread OutLive 25 (RTS Game) Dawn of War IV
Dota 2
The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
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 TL Mafia Community Thread Five o'clock TL Mafia
Community
General
The Letting Off Steam Thread European Politico-economics QA Mega-thread US Politics Mega-thread Canadian Politics Mega-thread Russo-Ukrainian War Thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Formula 1 Discussion
World Cup 2022
Tech Support
streaming software Strange computer issues (software) [G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
How EEG Data Can Predict Gam…
TrAiDoS
ramps on octagon
StaticNine
Funny Nicknames
LUCKY_NOOB
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1741 users

Interesting maths problem - Page 2

Blogs > MakkurtE
Post a Reply
Prev 1 2 3 Next All
oBlade
Profile Blog Joined December 2008
United States6118 Posts
November 10 2009 19:33 GMT
#21
#2

+ Show Spoiler +
yeah, 512


#1

+ Show Spoiler +

(don't forget you have just two eggs, so you can't apply binary searching; suppose you take your SUPPOSEDLY unbreakable egg and drop it from the 25th floor, now you have one egg left and no clue what the critical floor is)

drop at floor f and it breaks, so you drop at f-2; if it breaks at f-2, you're done. if it doesn't break, you have to drop at f-1
drop at floor f and it doesn't break, drop at f+3
so you start from floor 3

so if they were unbreakable you would drop all 16 times to get to the 48th floor but because 3 goes into 50 with a remainder , you have to drop again at the 50th floor (if it were to break at the 50th, you would have to use the 18th drop on the 49th floor, but otherwise, it would take 17 drops)

if they are unbreakable, you have to drop 17 times to SAFELY verify that they are unbreakable; if you drop more than this, you're fine, because you would just be doing a linear evaluation like start at floor 1 and go to 50 (if the eggs' integrity isn't affected by the impacts). but if you drop fewer times than this, you get fucked up if they DO break like the people who want to do binary searching.

after you drop at 48, you don't have to drop at 49 before 50 which is why it doesn't take 50/3 + remainder drops (that would be 18)

it takes 17 drops because we don't KNOW that they're unbreakable, if we knew they were unbreakable it would only take 1 drop (at floor 50, but if your egg broke at floor 50, you would have to do a linear search and drop a max of 49 times to safely figure it out). we have to test it as though we didn't know, which is the above method. 17 drops.

"I read it. You know how to read, you ignorant fuck?" - Andy Dufresne
AeTheReal
Profile Joined June 2009
United States108 Posts
Last Edited: 2009-11-10 21:44:49
November 10 2009 20:04 GMT
#22
+ Show Spoiler [Question #1] +
The correct answer for the first problem should be 6. You start on the 25th floor and go up half the floors left if the egg doesn't break. At best case scenario, where the egg breaks only at the 50 floor or doesn't break at all, you would test 6 times.

25, 38, 44, 47, 49, 50

If the egg breaks at any point before the 50th floor, then you would have to start testing from the floor above the last floor that it didn't break from. But yeah, the least number of tests to find the floor which the egg breaks is 6.

Nevermind. Was only thinking about best case scenario.

+ Show Spoiler [Question #2] +
People already got this one. It's 8^3, which is 512.
oBlade
Profile Blog Joined December 2008
United States6118 Posts
November 10 2009 20:15 GMT
#23
Question #1 revisited


+ Show Spoiler +
stop trying to use binary searching. it's tantamount to saying "I know this egg is unbreakable so I will just drop it on the 50th floor so it only takes me 1 drop"

My 17 drop method is in fact not the most efficient (I retract any implications I made to that effect) - although it's miles better than the binary searching bullshit which isn't even valid. I see the 10 drop method now. That's really elegant, and I'm going to remember that.

"I read it. You know how to read, you ignorant fuck?" - Andy Dufresne
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2009-11-10 22:31:44
November 10 2009 20:31 GMT
#24
@LiAIH4

i think ur rightbut ur order for dropping can be improved on. here is what i put

+ Show Spoiler +

10,19,27,34,40,45,48,50,49

or, if it breaks on 10
10,1,2,3,4,5,6,7,8,9




actually, i guess the best way to go would be
10,18,26,33,39,44,47,48,49,50


AeTheReal
Profile Joined June 2009
United States108 Posts
Last Edited: 2009-11-10 21:31:38
November 10 2009 21:23 GMT
#25
Edit: Oops, hit back too much and resubmitted old stuff.
Edit2: Looks like LiAIH4 has the right answer.
gyth
Profile Blog Joined September 2009
657 Posts
November 10 2009 21:44 GMT
#26
For all integers 4x^2 + x = 3y^2 + y


Are there any non zero solutions to that equation?
The plural of anecdote is not data.
Bearigator
Profile Blog Joined July 2009
United States233 Posts
Last Edited: 2009-11-10 21:58:18
November 10 2009 21:55 GMT
#27
Question 1
I think everybody is over complicating this.
+ Show Spoiler +
The answer is 2 drops. That is the minimum number you would need to find out at which floor it would break.

Example: Let us say the egg will break if you drop it off the 30th floor or higher. For your first attempt you just happen to drop it off the 30th floor. For your 2nd attempt, you go down one floor and drop it off the 29th floor. You now know that it will break on the 30th floor but no lower. Problem solved, 2 drops.

Alternatively, if the eggs really are unbreakable, you could figure that out with one drop off the 50th floor. In that case, the answer is 1 drop.

It won't work without fail obviously, but it accurately answers the question as given. Maybe I am that jerk who looks at the wording too hard though, idk.

Question 2
+ Show Spoiler +
512, everybody already posted that one. 8x8x8 == 512
MakkurtE
Profile Blog Joined July 2009
United States46 Posts
November 10 2009 22:04 GMT
#28
yes, you're reading it badly. so badly.

It won't work without fail obviously
Opinions in the above post are less informed then they appear
Bearigator
Profile Blog Joined July 2009
United States233 Posts
Last Edited: 2009-11-10 22:32:52
November 10 2009 22:30 GMT
#29
On November 11 2009 07:04 MakkurtE wrote:
yes, you're reading it badly. so badly.

Show nested quote +
It won't work without fail obviously

The question never says it has to work 100% of the time, just the minimum number. Hence my statement that I might just be reading it too literally.
MakkurtE
Profile Blog Joined July 2009
United States46 Posts
November 10 2009 22:39 GMT
#30
it also never said "if the first floor you randomly choose is the one the above breaking point" but don't let that stop ya

shine on you pedantic diamond
Opinions in the above post are less informed then they appear
conCentrate9
Profile Blog Joined December 2007
United States438 Posts
November 10 2009 22:50 GMT
#31
On November 11 2009 02:39 MakkurtE wrote:
solution:

+ Show Spoiler +

x^2 + x - 2(floors)=0 will solve for 2 eggs and any number of floors

in this case optimal is 9.xxxx, but you can't drop an egg 9 and a half times - so 10.

for the answer to be a perfectly round number the number of floors has to be a triangular number

i love the elegance of the method to get to the equation more then anything else really


Could you explain how you arrived at the equation? I'm not seeing the method.
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
November 10 2009 22:55 GMT
#32
On November 11 2009 07:39 MakkurtE wrote:
it also never said "if the first floor you randomly choose is the one the above breaking point" but don't let that stop ya

shine on you pedantic diamond


no need to get uppity, makkurte, he's not wrong. the question should have been phrased better.
(\o/)  If you want it, you find a way. Otherwise you find excuses. No exceptions.
 /_\   aka Shinbi (requesting a name change since 27/05/09 ☺)
Bearigator
Profile Blog Joined July 2009
United States233 Posts
Last Edited: 2009-11-10 23:16:32
November 10 2009 23:11 GMT
#33
On November 11 2009 07:39 MakkurtE wrote:
it also never said "if the first floor you randomly choose is the one the above breaking point" but don't let that stop ya

shine on you pedantic diamond

I pointed out why my answer was probably flawed. I was very clear that my answer was just taking advantage of the wording. No need to try to use ridiculous extremes and sarcasm to point out what I already did.

Edit: Also I think your formula will not solve for any number of floors. Edit again after I actually do the math.
Impervious
Profile Blog Joined March 2009
Canada4217 Posts
Last Edited: 2009-11-10 23:15:28
November 10 2009 23:14 GMT
#34
Tried to quote someone and their post was deleted.....
~ \(ˌ)im-ˈpər-vē-əs\ : not capable of being damaged or harmed.
MakkurtE
Profile Blog Joined July 2009
United States46 Posts
November 10 2009 23:16 GMT
#35
jeejee/bear - thats i know it's awkwardly worded, thats why i clarified it properly, several times. going back and picking at the original statement is pointless and tiresome


and lol, are you kidding me?

x^2 + x - 2(floors) = 0
x^2 + x - 2(10) = 0
x^2 + x - 20 = 0
(x+5)(x-4) = 0
x = -5 x = 4
x = -5 inadmissable

x=4 in the answer
Opinions in the above post are less informed then they appear
Bearigator
Profile Blog Joined July 2009
United States233 Posts
Last Edited: 2009-11-10 23:21:34
November 10 2009 23:18 GMT
#36
On November 11 2009 08:16 MakkurtE wrote:
jeejee/bear - thats i know it's awkwardly worded, thats why i clarified it properly, several times. going back and picking at the original statement is pointless and tiresome


and lol, are you kidding me?

x^2 + x - 2(floors) = 0
x^2 + x - 2(10) = 0
x^2 + x - 20 = 0
(x+5)(x-4) = 0
x = -5 x = 4
x = -5 inadmissable

x=4 in the answer

How would you go about dropping an egg 4 times to solve it 100% of the time? Seriously, not being an annoying ass, I'm doing different combinations of floor drops and I can't find one that works every time in 4.
MakkurtE
Profile Blog Joined July 2009
United States46 Posts
November 10 2009 23:20 GMT
#37
conCentrate9:

+ Show Spoiler +
if you had infinite number of eggs you'd just binary search, starting at 25 (wiki can explain that better then i can). but obviously with only two eggs thats out.

so you have to pick a large increment, drop the egg, if it doesn't break, you move up by one more increment and try again until it does. once you find the unsafe large increment floor, you then work your way up to that in one's from the last highest "safe" known floor, one at a time.

so

d=number of drops with egg2
(1+d)+(1+(d-1))+(1+(d-2))+.....+1+0 = no floors
let 1+d=x=total number of drops
x+(x-1)+(x-2).....= floors
x(x+1)/2 = floors
x(x+1) = 2(floors)
x(x+1) - 2(floors) = 0
x^2 +x - 2(floors) = 0

hope you see where i'm coming from now.

i never realized typing formulae was such a pain in the ass
Opinions in the above post are less informed then they appear
Impervious
Profile Blog Joined March 2009
Canada4217 Posts
November 10 2009 23:21 GMT
#38
4 - 7 - 9 - 10

If it breaks on 4, start at 1 and go to 3. Max of 4 drops.
If it breaks on 7, start at 5, and go to 6. Max of 4 drops.
If it breaks on 9, start at 8. Max of 4 drops.
If it breaks on 10, you know where it broke.

Easy.
~ \(ˌ)im-ˈpər-vē-əs\ : not capable of being damaged or harmed.
MakkurtE
Profile Blog Joined July 2009
United States46 Posts
November 10 2009 23:22 GMT
#39
yup
Opinions in the above post are less informed then they appear
Bearigator
Profile Blog Joined July 2009
United States233 Posts
November 10 2009 23:22 GMT
#40
On November 11 2009 08:21 lMPERVlOUS wrote:
4 - 7 - 9 - 10

If it breaks on 4, start at 1 and go to 3. Max of 4 drops.
If it breaks on 7, start at 5, and go to 6. Max of 4 drops.
If it breaks on 9, start at 8. Max of 4 drops.
If it breaks on 10, you know where it broke.

Easy.

Ah, my bad. I even did that combination of drops. I must have counted wrong or something. My bad.
Prev 1 2 3 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 29m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Serral 3885
RotterdaM 304
TKL 123
StarCraft: Brood War
Britney 43846
Bisu 2136
EffOrt 995
Horang2 978
Larva 709
firebathero 531
Stork 502
Hyuk 498
ggaemo 457
Mini 379
[ Show more ]
BeSt 273
actioN 241
hero 228
Soulkey 216
ZerO 207
Rush 186
Soma 181
Killer 181
Pusan 92
Barracks 90
Hyun 83
Dewaltoss 83
Sharp 62
Zeus 61
Backho 55
soO 54
ToSsGirL 35
sorry 29
Shine 19
HiyA 19
scan(afreeca) 16
Rock 15
IntoTheRainbow 15
GoRush 13
Noble 11
ajuk12(nOOB) 10
Sacsri 9
Terrorterran 8
Dota 2
Gorgc4567
qojqva1939
syndereN428
monkeys_forever179
Counter-Strike
fl0m1
Heroes of the Storm
MindelVK1
Other Games
singsing2361
B2W.Neo1161
hiko895
Liquid`RaSZi656
FrodaN509
Beastyqt499
Lowko347
DeMusliM322
ceh9276
KnowMe197
ArmadaUGS149
Mew2King102
QueenE65
Trikslyr28
ZerO(Twitch)17
fpsfer 1
Organizations
Other Games
gamesdonequick1533
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 15 non-featured ]
StarCraft 2
• poizon28 25
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• HerbMon 17
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Nemesis3391
• TFBlade944
Other Games
• Shiphtur151
Upcoming Events
Big Brain Bouts
29m
Fjant vs Bly
Serral vs Shameless
OSC
6h 29m
The PiG Daily
7h 29m
Maru vs Rogue
TBD vs Classic
herO vs Solar
ByuN vs Solar
Replay Cast
8h 29m
CranKy Ducklings
18h 29m
RSL Revival
18h 29m
SHIN vs Bunny
ByuN vs Shameless
WardiTV Invitational
19h 29m
Krystianer vs TriGGeR
Cure vs Rogue
SC Evo League
21h 29m
uThermal 2v2 Circuit
23h 29m
BSL
1d 3h
Artosis vs TerrOr
spx vs StRyKeR
[ Show More ]
Replay Cast
1d 8h
Sparkling Tuna Cup
1d 18h
RSL Revival
1d 18h
Cure vs Zoun
Clem vs Lambo
WardiTV Invitational
1d 19h
BSL
2 days
Dewalt vs DragOn
Aether vs Jimin
GSL
2 days
Afreeca Starleague
2 days
Soma vs Leta
Wardi Open
2 days
Monday Night Weeklies
3 days
OSC
3 days
CranKy Ducklings
3 days
Afreeca Starleague
3 days
Light vs Flash
Replay Cast
4 days
Replay Cast
5 days
The PondCast
5 days
Replay Cast
6 days
RSL Revival
6 days
Liquipedia Results

Completed

Proleague 2026-05-05
WardiTV TLMC #16
Nations Cup 2026

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
Acropolis #4
Escore Tournament S2: W6
SCTL 2026 Spring
RSL Revival: Season 5
2026 GSL S1
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2

Upcoming

KK 2v2 League Season 1
BSL 22 Non-Korean Championship
YSL S3
Escore Tournament S2: W7
Escore Tournament S2: W8
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
2026 GSL S2
BLAST Bounty Summer 2026: Closed Qualifier
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 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.