From top to bottom, concatenate the nine numbers that is in the blank spaces as your answer.
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.
Remark the vector a[k] is not really needed.
For starters, let's first recognize that the number of digits is going to be at least 18, so if each of these answers is going to be double digits, the total number of digits will come out to be 9*3 = 27.
Next, we find that excluding 2, almost every digit is not going to appear very often, so all of the answers with the exception of 2 are going to be close to and at most 26. This means that the number of digits that are not 2 is going to be close to and at most 18.
This next bit helps optimize the counting a little bit. Since the total number of digits is 27, rather than counting up the number of digits that are not a particular one, we count up the number of times a digit appears and subtract that from 27. So if the digit 8 appears twice, then the count of non-8 digits is 27-2 = 25.
The digits 7 and 9 are only going to ever appear once, making the count 26. The digit 8 will probably only appear twice because of the 18 for answer 2. Similarly, the digit 1 will probably only appear twice. Both of these counts is 25.
This leaves us with the following likely scenario:
1: 25
2: 18
3: 2-
4: 2-
5: 2-
6: 2-
7: 26
8: 25
9: 26
The last 4 answers are very erratic, as changing one of them usually changes many of the others. However, we can now prove that the numbers we have fixed will not be changed by just playing with the missing digits.
At most, digits 3 and 4 can have 5 occurrences, but if one of them did have 5, the count comes to 27-5 = 22, which does not contribute the digit needed. Therefore, they can only have 4 occurrences maximum, which brings the count of a digit to 23 at the lowest, which does not change any of the other quantities we have. The only digits that can extend past 4 occurrences is 5 or 6, since they already appear three times each, meaning they start at 24, so it is not possible for them to appear more than 4 times either. (There are one or two ambiguous cases, but working through them manually shows they don't work.)
However, just proving that these missing digits will not affect our fixed digits does not mean the answer exists. Between the possibilities of 3, 4, 5, and 6, there are 4^4 = 256 possible cases to check, in which the large majority of them can be immediately or quickly discarded. This now becomes possible to guess and check by hand, which allows us to find our final answer.
Thanks! I'm sure you enjoyed this question!
Log in to reply
what's wrong with 9 9 9 8 9 9 8 7 4.....one digit at each blank.
Log in to reply
Check your working again.
You need to count the ones already in the box as well
What are we supposed to count, its very vague for me Can you give us some hints T h a n k s ! ! !
Log in to reply
Write down all the two digit numbers in the blanks respectively and read the question again.
Log in to reply
@Pi Han Goh – Count two digit numbers from where because in the question it just stated "Write Down two digit numbers that are not 1 __ ??? T h a n k s ! ! !
Log in to reply
@Syed Baqir – Have you tried writing them down first?
Log in to reply
@Pi Han Goh – I dont know from where I need to start , can you help me please ?
Log in to reply
@Syed Baqir – Write 25 on the first line, 18 on the second line, 25 on the third line, and so on.
Log in to reply
@Pi Han Goh – Yes I know, But I could not understand why 25 , 18 because I cant find them in the box :P
Log in to reply
@Syed Baqir – Read the question again. How many digits that are not 1? How many digits that are not 2?
Log in to reply
@Pi Han Goh – uhhh, I was searching inside the box to find the answer ,,,
Thats why I restricted myself until 9 and never thought it goes to 25 :P , :P
Dang, forgetting the 123456789 sure blows.
if you don't mind explaining, how do you get "at least 18" or the answers are going to be double digits?
Another bit of help comes from the sum of all the counts. Each count is: 27 - (occurences of a digit). Sum all: 27×9 - 27 (sum of the occurences of all digits) = 216. Which leads to an average count of 24. You can use this information to reach convergence easier.
why not 9,9,9,8,9,9,8,7,4
I thought this would be much harder than the easier counterpart, but to my surprise only 11 trials is required to solve this puzzle. Nevertheless, I've written a program to solve this problem: link .
For those who can't read code or can't be bothered to click the link, here are some explanations. Some answers have already proved that all the answers must be 2 digits long and there are maximum 27 digits in the box, so my program simply starts by placing 27 on all the underlines and start counting the number of digits in the box, then simply place the new answers as 27 minus the number of digits and repeat the process.
Here are the all the trials needed (so doing it by hand is probably not that hard either):
Thank you for your solution.
Remark the program should converge from whatever starting position.
Alternative solution: eighteighteighteighteighteighteighteighteight.
this is the only solution that makes sense to me.
1 2 3 4 5 6 7 8 9 10 11 |
|
Output :
1 |
|
Thanks for posting a programming solution.
1 2 3 4 5 6 7 8 9 10 11 |
|
1 2 3 4 5 6 7 8 9 10 |
|
As we're submitting programmable solutions, I may as well add an alternative which I achieved in LibreOffice Calc, with Iterations enabled in Tools - Options - LibreOffice Calc - Calculate.
A | B |
1 | =27-(1+LEN($B$1)-LEN(SUBSTITUTE($B$1,A1,""))+LEN($B$2)-LEN(SUBSTITUTE($B$2,A1,""))+LEN($B$3)-LEN(SUBSTITUTE($B$3,A1,""))+LEN($B$4)-LEN(SUBSTITUTE($B$4,A1,""))+LEN($B$5)-LEN(SUBSTITUTE($B$5,A1,""))+LEN($B$6)-LEN(SUBSTITUTE($B$6,A1,""))+LEN($B$7)-LEN(SUBSTITUTE($B$7,A1,""))+LEN($B$8)-LEN(SUBSTITUTE($B$8,A1,""))+LEN($B$9)-LEN(SUBSTITUTE($B$9,A1,""))) |
2 | =27-(1+LEN($B$1)-LEN(SUBSTITUTE($B$1,A2,""))+LEN($B$2)-LEN(SUBSTITUTE($B$2,A2,""))+LEN($B$3)-LEN(SUBSTITUTE($B$3,A2,""))+LEN($B$4)-LEN(SUBSTITUTE($B$4,A2,""))+LEN($B$5)-LEN(SUBSTITUTE($B$5,A2,""))+LEN($B$6)-LEN(SUBSTITUTE($B$6,A2,""))+LEN($B$7)-LEN(SUBSTITUTE($B$7,A2,""))+LEN($B$8)-LEN(SUBSTITUTE($B$8,A2,""))+LEN($B$9)-LEN(SUBSTITUTE($B$9,A2,""))) |
3 | =27-(1+LEN($B$1)-LEN(SUBSTITUTE($B$1,A3,""))+LEN($B$2)-LEN(SUBSTITUTE($B$2,A3,""))+LEN($B$3)-LEN(SUBSTITUTE($B$3,A3,""))+LEN($B$4)-LEN(SUBSTITUTE($B$4,A3,""))+LEN($B$5)-LEN(SUBSTITUTE($B$5,A3,""))+LEN($B$6)-LEN(SUBSTITUTE($B$6,A3,""))+LEN($B$7)-LEN(SUBSTITUTE($B$7,A3,""))+LEN($B$8)-LEN(SUBSTITUTE($B$8,A3,""))+LEN($B$9)-LEN(SUBSTITUTE($B$9,A3,""))) |
4 | =27-(1+LEN($B$1)-LEN(SUBSTITUTE($B$1,A4,""))+LEN($B$2)-LEN(SUBSTITUTE($B$2,A4,""))+LEN($B$3)-LEN(SUBSTITUTE($B$3,A4,""))+LEN($B$4)-LEN(SUBSTITUTE($B$4,A4,""))+LEN($B$5)-LEN(SUBSTITUTE($B$5,A4,""))+LEN($B$6)-LEN(SUBSTITUTE($B$6,A4,""))+LEN($B$7)-LEN(SUBSTITUTE($B$7,A4,""))+LEN($B$8)-LEN(SUBSTITUTE($B$8,A4,""))+LEN($B$9)-LEN(SUBSTITUTE($B$9,A4,""))) |
5 | =27-(1+LEN($B$1)-LEN(SUBSTITUTE($B$1,A5,""))+LEN($B$2)-LEN(SUBSTITUTE($B$2,A5,""))+LEN($B$3)-LEN(SUBSTITUTE($B$3,A5,""))+LEN($B$4)-LEN(SUBSTITUTE($B$4,A5,""))+LEN($B$5)-LEN(SUBSTITUTE($B$5,A5,""))+LEN($B$6)-LEN(SUBSTITUTE($B$6,A5,""))+LEN($B$7)-LEN(SUBSTITUTE($B$7,A5,""))+LEN($B$8)-LEN(SUBSTITUTE($B$8,A5,""))+LEN($B$9)-LEN(SUBSTITUTE($B$9,A5,""))) |
6 | =27-(1+LEN($B$1)-LEN(SUBSTITUTE($B$1,A6,""))+LEN($B$2)-LEN(SUBSTITUTE($B$2,A6,""))+LEN($B$3)-LEN(SUBSTITUTE($B$3,A6,""))+LEN($B$4)-LEN(SUBSTITUTE($B$4,A6,""))+LEN($B$5)-LEN(SUBSTITUTE($B$5,A6,""))+LEN($B$6)-LEN(SUBSTITUTE($B$6,A6,""))+LEN($B$7)-LEN(SUBSTITUTE($B$7,A6,""))+LEN($B$8)-LEN(SUBSTITUTE($B$8,A6,""))+LEN($B$9)-LEN(SUBSTITUTE($B$9,A6,""))) |
7 | =27-(1+LEN($B$1)-LEN(SUBSTITUTE($B$1,A7,""))+LEN($B$2)-LEN(SUBSTITUTE($B$2,A7,""))+LEN($B$3)-LEN(SUBSTITUTE($B$3,A7,""))+LEN($B$4)-LEN(SUBSTITUTE($B$4,A7,""))+LEN($B$5)-LEN(SUBSTITUTE($B$5,A7,""))+LEN($B$6)-LEN(SUBSTITUTE($B$6,A7,""))+LEN($B$7)-LEN(SUBSTITUTE($B$7,A7,""))+LEN($B$8)-LEN(SUBSTITUTE($B$8,A7,""))+LEN($B$9)-LEN(SUBSTITUTE($B$9,A7,""))) |
8 | =27-(1+LEN($B$1)-LEN(SUBSTITUTE($B$1,A8,""))+LEN($B$2)-LEN(SUBSTITUTE($B$2,A8,""))+LEN($B$3)-LEN(SUBSTITUTE($B$3,A8,""))+LEN($B$4)-LEN(SUBSTITUTE($B$4,A8,""))+LEN($B$5)-LEN(SUBSTITUTE($B$5,A8,""))+LEN($B$6)-LEN(SUBSTITUTE($B$6,A8,""))+LEN($B$7)-LEN(SUBSTITUTE($B$7,A8,""))+LEN($B$8)-LEN(SUBSTITUTE($B$8,A8,""))+LEN($B$9)-LEN(SUBSTITUTE($B$9,A8,""))) |
9 | =27-(1+LEN($B$1)-LEN(SUBSTITUTE($B$1,A9,""))+LEN($B$2)-LEN(SUBSTITUTE($B$2,A9,""))+LEN($B$3)-LEN(SUBSTITUTE($B$3,A9,""))+LEN($B$4)-LEN(SUBSTITUTE($B$4,A9,""))+LEN($B$5)-LEN(SUBSTITUTE($B$5,A9,""))+LEN($B$6)-LEN(SUBSTITUTE($B$6,A9,""))+LEN($B$7)-LEN(SUBSTITUTE($B$7,A9,""))+LEN($B$8)-LEN(SUBSTITUTE($B$8,A9,""))+LEN($B$9)-LEN(SUBSTITUTE($B$9,A9,""))) |
Oh woah!!! I didn't know a simple usage of Office can solve this problem! Your patience must be endless! Thanks man.
Just curious, how many iterations did you do to get to the final answer?
Log in to reply
Didn't take much time. I'm just familiar with Calc/Excel.
After pasting the formula into cells B2:B9, it takes 2 iterations of pasting the formula back into B1 to produce the answer, and a 3rd iteration confirms that the answer is correct (because they don't change).
Log in to reply
Color me impressed!
This solution is really unexpected, man! You have my gratitude!!
Log in to reply
@Pi Han Goh – Thanks. Appreciation appreciated! :)
You have to include all digits in the box in your counts. This includes the digits in your answer. This means the answers will all be two digits. 25 18 25 24 23 24 26 25 26
What we have to count ?
What is it that we are counting, and how do we get 25 from 1?
251825242324262526
You have to include all digits in the box in your counts. This includes the digits in your answer. This means the answers will all be two digits.
How did you do this?
Log in to reply
Iteratively on paper. With just single digit answers included the largest answer would be 17 which breaks all answers being single digit. Starting with the assumption that all answers are two digits, the largest answer is 26 and the smallest is going to be two at around 18. Then you can move forward iteratively working through the answer. Start by assuming all answers are 26 except for two which is 18. The answer will stabilize on the above.
Log in to reply
Could you show more of the intermediate steps? I'm curious!
Log in to reply
@Pi Han Goh – I didn't feel it was difficult enough to require this. Working on iPad, may type out each step later on PC.
I don't understand the counting parts. What is it that we are counting?
Problem Loading...
Note Loading...
Set Loading...
I made a C program to solve the problem. The answer is
25 18 25 24 23 24 26 25 26
Here's the program: