Skip to main content

How old are the daughters?

Two MIT math graduates bump into each other at Fairway on the upper west side. They hadn't seen each other in over 20 years.
The first grad says to the second: "how have you been?"
Second: "Great! I got married and I have three daughters now"
First: "Really? how old are they?"
Second: "Well, the product of their ages is 72, and the sum of their ages is the same as the number on that building over there.."
First: "Right, ok.. oh wait.. hmmmm.., I still don't know"
second: "Oh sorry, the oldest one just started to play the piano"
First: "Wonderful! my oldest is the same age!"

Problem: How old are the daughters?

Comments

Anonymous said…
12, 3 and 2. There are only a few combinations of factors that multiply to 72. Only 12, 3 and 2 exlude the possibilty of the first two daughters being twins (for example: 6, 6, 2). Since she indicates "the oldest one", this excludes the possiblity that her first born daughters are twins (although technically they could have been born a day apart, I guess).
Rajneesh Garg said…
...This problem was asked to one of my friends during his interview with M$
Anonymous said…
1, 6, 12

2, 3, 12

3, 4, 6

1, 3, 24

1, 1, 72 ( not likely )

2, 2, 18

2, 4, 9

3, 3, 8

I feel like we're missing some clues?!?!
Anonymous said…
9, 8, 1

Yep. I'm definitely missing something, possibly the address of the building on the upper west side.
Anonymous said…
The bit about the building number means the solution is one of two (or more) solutions that add to the same value (on the building). The bit about the piano is to decide between them.
Anonymous said…
Well, here's why all the clues are necessary. After finding the factors of 72 you'll arrive at the point where 2 sets will add up to the same number. One of which set will have two larger numbers equal. Given the fact that the first guy says "my oldest daughter" you can exclude this and are left with the other set of factors. =)
Anonymous said…
Even between twins there's an elder and a younger twin. My oldest daughter = the elder twin. So how ?
Anonymous said…
and the sum of their ages is my house number.

You`ll see that you have 2 sets with wher e the numbers add up to the same "house number" because if it was any other the solution would be straightforward
Anonymous said…
The oldest daughter's age is < 20.
If you have lived in new york, you would know that manhattan as about 12 avenues and that they follow a specific numbering system where the avenue or street number is one of the first one or two digits.
So I wanted to be sure where exactly they were standing. I did a google map search for Fairwar Market, New york. I came up with couple of locations on upper west side. Taken down the addresses. Downloaded Google Earth (http://earth.google.com) and virtually navigated the neighborhoods of both Fairway markets and found a building with 12 on it. So the answer is 12, 6, 1.

Note: I was the one who gave interview with M$. I was not selected because I was using Google's tools!! Damn M$. :-)
Anonymous said…
Factor 72 out and sum their ages:
1 1 72 74
1 2 36 39
1 3 24 28
1 4 18 23
1 6 12 19
1 8 9 18
2 2 18 22
2 3 12 17
2 4 9 15
2 6 6 14
3 3 8 14
3 4 6 13

The sum of the ages add up to a building number which still confuses the person. So how could that be, well the building number must be sum we get twice "14". The next part says, "My oldest one" indicating that their is only one oldest. Therefore, the the only combo that would work is 3,3,8.

Popular posts from this blog

Installing Bugzilla on Windows

Bugzilla is the Bugs/Issues Tracking Tool from The Mozilla Organization. Version 2.18 is the latest stable release. There are couple of resources which guide a User installing Bugzilla on a Unix/linux machine. However, this entry describes a way to install Bugzilla on a Windows machine (W2K to be precise). This document guides you step by step through the installation process. First, get Administrative access to the machine on which you want to install Bugzilla. It should be a simple step. Usually, Users are given Administrative rights on Windows machine. However, if you dont have, contact your Administrator. Get Bugzilla Then download the Bugzilla from http://bugzilla.org/download.html . There are two ways of gettng it - through CVS or direct downloading the tar file. Remember there are no Zip files. However, any zip utility should be able to untar the Bugzilla. I download the tar file and untarred it using WinZip. I placed the untarred 'bugzilla' directory in my c: drive. So...

Online Hindi Radio Stations

Here is the list of Online Hindi Radio Stations. Copy the URL in your media player and enjoy !! 106.2 HUMFM - UAE ==> http://www.humfm.com/humfm.asx AajKal - Asian Network ==> http://stream.servstream.com/ViewWeb/BBCRadio_music/Event/BBCAsianNetwork_hi.asx Amrit Bani - UK ==> http://62.25.97.192/amritbani?MSWMExt=.asf ApnaRadio - USA ==> http://www.apnaradio.com/live/media24/ApnaRadio.asx Asian Gold Radio - UK ==> http://62.25.96.7/asiangold Asian Sound Radio - UK ==> http://www.vtuner.com/vtunerweb/mms/mms15278.asx BBC News ==> http://www.bbc.co.uk/worldservice/meta/tx/nb/live_news_au_nb.asx BombayBeats FM ==> http://www.1.fm/player/energybbfm32k.asx City 101.6 FM - Dubai ==> http://asx.abacast.com/arabian_radio-city-24.asx DDLive Video - India ==> http://164.100.51.209/ddlive?MSWMExt=.asf DesiSoundz - India ==> http://desisoundz.com:8000 Haagstad Radio - Holand ==> mms://81.205.146.32:21/haagstadradio kismatradio.com ==> http://www.kismatradio....

What are the different type of JDBC drivers?

There are four types of JDBC database driver: The JDBC/ODBC bridge driver (Type 1) A piece of native C-code that translates a JDBC call to an ODBC call. Use this driver for development, not for industrial-strength application environments. Note that you have to have an ODBC database driver manager + an ODBC database driver installed on the server in addition to the JDBC/ODBC bridge. Though useful for learning JDBC and quick testing, bridging solutions are rarely appropriate for production environments. Native API partly java driver (Type 2) A piece of native C-code that translates a java JDBC call to a native database call level API. Use this driver for development and deployment. Due to its native code, this driver can only be used by Java Applications with full computer access (i.e. not Applets). Type 2 drivers generally provide the best performance, but they require the installation of native libraries on clients that need to access the database. Applications using Type 2 drivers ...