Agnishom is in love and decided to talk to his crush on Valentine's Day.
Agnishom: What's your phone number, sweetheart?
Agnishom's Love: Well, if you take your phone number and replace it the leftmost digit with a 1, you get my phone number.
Agnishom: And the 4-digit area code that comes before it?
Agnishom's Love: You know, the product of the four digits in the code is actually the square root of my phone number.
Agnishom: Hey, that's still insufficient information.
Agnishom's Love: Ah, but if I tell you the sum of digits of the code, then you can figure it out exactly.
What is the 4-digit code?
Note: Even though you have fewer pieces of information (e.g. you don't know how many digits the phone number has or what it is), you can still figure out the 4-digit code from the conversation.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
I reversed the order in the analysis after determining that all digits are the same.
Only for 1111, 6666, and 8888 does the square of the product of their digits start with a 1 (1, 1679616, and 16777216 respectively).
Of these, only 6666 has multiple factorizations in 4 digits (viz. permutations of 4499 and 4669).
I started somewhat similarly but then realized it doesn't have to be a 7 digit number (just starts with 1) so the inequality of the product of the digits in the code is not necessarily between 1000 and 1414. The parts about all 4 digits being the same and multiple factorizations are what direct to the solution.
Log in to reply
sir first i would like to explain my solution is experimental oriented; definitely it have to be 7 digit number becasue,in question it says 4 digit number area code and this number's square starts with "1" .i started with 1000 because it's square starts with ''1''(and it is smallest 4 digit number) after some experiments (1415)^2 =2002225 starts with ''2'' i realized inclusive between 1000 and 1414 all numbers square starts with ''1'' and all of them 7 digit number thats why it have to be 7 digit number spesificly, i am talking here with proofs...
8888 also works - 6666 is not the only solution
Problem Loading...
Note Loading...
Set Loading...
We are given that A is able to figure out the entire 4-digit code. If the code isn't all the same digits, then there exist various permutations which would make it unable for him to figure it out. Hence, we can conclude that the code is of the form a a a a .
Now, he knows the product is a 4 . Since he was previously unable to figure out what the code must be, we know that there is more than 1 way to factorize a 4 using only 4 digits.
Hence, we could have:
( 1 4 has no other factorization)
2 4 with another factorization like 1 × 2 × 2 × 4
3 4 with the other factorization like 1 × 3 × 3 × 9
4 4 with the other factorization like 2 × 4 × 4 × 8
( 5 4 has no other factorization)
6 4 has other factorizations like like 4 × 4 × 9 × 9
( 7 4 has no other factorization)
( 8 4 has no other factorization)
( 9 4 has no other factorization)
We still have one remaining fact, which is that the square of the (product of the digits) starts with 1. We then check that ( 2 4 ) 2 = 2 5 6 , ( 3 4 ) 2 = 6 5 6 2 , ( 4 4 ) 2 = 6 5 3 5 6 , ( 6 4 ) 2 = 1 6 7 9 6 1 6 .
Thus, the only possibility is that the code is 6666, and the phone number is 1679616,