Difference between revisions of "2007 iTest Problems/Problem 35"

(Solution)
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
  
 
==Solution==
 
==Solution==
 +
We seek to maximize the number of digits in the number (call it <math>N</math>) first, so the first and last digits should be 9. Next recognize that <math>N</math> should be symmetric (like 5445 or 93239), and that if there are ever consecutive digits the number cannot contain any digits less than the lower consecutive digit. If <math>N</math> begins with 98, then it must be 9889. If <math>N</math> begins with 97, it can either be 9779, 97679, or 976679. If <math>N</math> begins with 96, it can either be 9669, 96569, 965569, 96469, 964469, 9643469, or 96433469. If <math>N</math> begins with 95, it has the maximum value 95322359, which is less than 96433469. Clearly if <math>N</math> starts with a lower second digit it is less than this number, so <math>N=\boxed{96433469}</math>. Note the differences between consecutive digits in this number.
  
 
==See Also==
 
==See Also==

Latest revision as of 21:09, 7 April 2024

Problem 35

Find the greatest natural number possessing the property that each of its digits except the first and last one is less than the arithmetic mean of the two neighboring digits.

Solution

We seek to maximize the number of digits in the number (call it $N$) first, so the first and last digits should be 9. Next recognize that $N$ should be symmetric (like 5445 or 93239), and that if there are ever consecutive digits the number cannot contain any digits less than the lower consecutive digit. If $N$ begins with 98, then it must be 9889. If $N$ begins with 97, it can either be 9779, 97679, or 976679. If $N$ begins with 96, it can either be 9669, 96569, 965569, 96469, 964469, 9643469, or 96433469. If $N$ begins with 95, it has the maximum value 95322359, which is less than 96433469. Clearly if $N$ starts with a lower second digit it is less than this number, so $N=\boxed{96433469}$. Note the differences between consecutive digits in this number.

See Also

2007 iTest (Problems, Answer Key)
Preceded by:
Problem 34
Followed by:
Problem 36
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 TB1 TB2 TB3 TB4