9 Comments
 

@"MutualMonkey"

But I don't think that you actually know that false coin is heavier, you only know that it has different weight than other coins...

goblan, great link, tnx:D! Do you maybe know solution when you have for example 10 marbles?

 
boib

@justin88: How did you come up with this answer? Is seems to me quite correct, but I would really like to find some proof for this, or at least an idea how to prove this or some link?

Came across this in my discrete math final last year. You can find the full explanation in the comments here http://www.cseblog.com/2013/11/weighing-problem-discrete-mathematics.ht…

 
Best Response
boib

@justin88: How did you come up with this answer? Is seems to me quite correct, but I would really like to find some proof for this, or at least an idea how to prove this or some link?

Any optimal strategy constructs a decision tree; the maximum depth of this decision tree is the answer.

In this case, the decision tree has a branching factor of 3 (side1 heavier, side2 heavier, side1 == side2). Therefore, the depth of the tree is logbase3(n). You round up at the end because you want a whole number; i.e. 60 or 70 balls both will require weighing four times.

Another way to look at it: each of the n balls has three potential weights: { heavy, light, normal }. You need to search this space, which you can do logarithmically via divide and conquer.

 

Praesentium recusandae accusantium sequi quos officia at quo. Voluptatem sunt voluptatem et. Ut deleniti aliquam culpa provident omnis accusantium. Libero non aspernatur blanditiis rerum aliquam. Vero saepe exercitationem suscipit rerum facilis aliquid quo totam. Impedit molestiae tempore voluptatum ex repellendus sint neque. Aut sit et velit consequatur magnam non.

Fugit quam voluptatem corporis sit impedit. Rerum tenetur rerum esse perferendis voluptatem et. Saepe sed consequatur dolorem repellat voluptas maiores distinctio quisquam. Sint placeat soluta optio aliquid sequi. Quos magnam ut quisquam adipisci voluptatem delectus sit.

Error omnis odit asperiores vitae. Qui qui autem dolor est vel sit pariatur eaque.

Autem ut perferendis eos minus nisi omnis atque. Quo aut quo velit temporibus suscipit sit.

Career Advancement Opportunities

October 2026 Investment Banking

  • Evercore 01 99.5%
  • Moelis & Company 01 99.0%
  • JPMorgan 01 98.4%
  • Guggenheim Partners 02 97.9%
  • Morgan Stanley 06 97.4%

Overall Employee Satisfaction

October 2026 Investment Banking

  • Moelis & Company No 99.5%
  • Morgan Stanley 02 99.0%
  • Evercore 01 98.4%
  • Banco Santander 02 97.9%
  • BMO Capital Markets 13 97.4%

Professional Growth Opportunities

October 2026 Investment Banking

  • Evercore 01 99.5%
  • Moelis & Company 01 99.0%
  • Morgan Stanley 05 98.4%
  • Goldman Sachs 01 97.9%
  • JPMorgan No 97.4%

Total Avg Compensation

October 2026 Investment Banking

  • Vice President (16) $429
  • Associates (57) $264
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (28) $184
  • Intern/Summer Associate (16) $161
  • 1st Year Analyst (84) $151
  • Intern/Summer Analyst (76) $101
notes
16 IB Interviews Notes

“... there’s no excuse to not take advantage of the resources out there available to you. Best value for your $ are the...”

Leaderboard

1
redever's picture
redever
99.2
2
kanon's picture
kanon
99.0
3
BankonBanking's picture
BankonBanking
99.0
4
Secyh62's picture
Secyh62
99.0
5
dosk17's picture
dosk17
98.9
6
CompBanker's picture
CompBanker
98.9
7
GameTheory's picture
GameTheory
98.9
8
Betsy Massar's picture
Betsy Massar
98.9
9
DrApeman's picture
DrApeman
98.9
10
bolo up's picture
bolo up
98.8
success
From 10 rejections to 1 dream investment banking internship

“... I believe it was the single biggest reason why I ended up with an offer...”