Consider a string of n 7 's, 7 7 7 7 ⋯ 7 7 , into which + signs are inserted to produce an arithmetic expression. For example, 7 + 7 7 + 7 7 7 + 7 + 7 = 8 7 5 could be obtained from eight 7 's in this way. For how many values of n is it possible to insert + signs so that the resulting expression has value 7000?
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.
Good observations. The change of variables helps simplify the approach.
The answer is simply 28//// 777x9=6993 +7
Suppose we require a 7 s, b 7 7 s, and c 7 7 7 s to sum up to 7 0 0 0 ( a , b , c ≥ 0 ). Then 7 a + 7 7 b + 7 7 7 c = 7 0 0 0 , or dividing by 7 , a + 1 1 b + 1 1 1 c = 1 0 0 0 . Then the question is asking for the number of values of n = a + 2 b + 3 c .
Manipulating our equation, we have a + 2 b + 3 c = n = 1 0 0 0 − 9 ( b + 1 2 c ) ⟹ 0 < 9 ( b + 1 2 c ) < 1 0 0 0 . Thus the number of potential values of n is the number of multiples of 9 from 0 to 1 0 0 0 , or 1 1 2 .
However, we forgot to consider the condition that a ≥ 0 . For a solution set ( b , c ) : n = 1 0 0 0 − 9 ( b + 1 2 c ) , it is possible that a = n − 2 b − 3 c < 0 (for example, suppose we counted the solution set ( b , c ) = ( 1 , 9 ) ⟹ n = 1 9 , but substituting into our original equation we find that a = − 1 0 , so it is invalid). In particular, this invalidates the values of n for which their only expressions in terms of ( b , c ) fall into the inequality 9 b + 1 0 8 c < 1 0 0 0 < 1 1 b + 1 1 1 c .
For 1 0 0 0 − n = 9 k ≤ 9 ( 7 ⋅ 1 2 + 1 1 ) = 8 5 5 , we can express k in terms of ( b , c ) : n ≡ b ( m o d 1 2 ) , 0 ≤ b ≤ 1 1 and c = 1 2 n − b ≤ 7 (in other words, we take the greatest possible value of c , and then "fill in" the remainder by incrementing b ). Then 1 1 b + 1 1 1 c ≤ 8 5 5 + 2 b + 3 c ≤ 8 5 5 + 2 ( 1 1 ) + 3 ( 7 ) = 8 9 8 < 1 0 0 0 , so these values work.
Similarily, for 8 5 5 ≤ 9 k ≤ 9 ( 8 ⋅ 1 2 + 1 0 ) = 9 5 4 , we can let ( b , c ) = ( k − 8 ⋅ 1 2 , 8 ) , and the inequality 1 1 b + 1 1 1 c ≤ 9 5 4 + 2 b + 3 c ≤ 9 5 4 + 2 ( 1 0 ) + 3 ( 8 ) = 9 9 8 < 1 0 0 0 . However, for 9 k ≥ 9 6 3 ⟹ n ≤ 3 7 , we can no longer apply this approach.
So we now have to examine the numbers on an individual basis. For 9 k = 9 7 2 , ( b , c ) = ( 0 , 9 ) works. For 9 k = 9 6 3 , 9 8 1 , 9 9 0 , 9 9 9 ⟹ n = 3 7 , 1 9 , 1 0 , 1 , we find (using that respectively, b = 1 1 , 9 , 1 0 , 1 1 + 1 2 p for integers p ) that their is no way to satisfy the inequality 1 1 b + 1 1 1 c < 1 0 0 0 .
Thus, the answer is 1 1 2 − 4 = 1 0 8 .
Its obvious that 7 0 0 0 = 7 ( 1 0 0 0 ) .
Divide the problem into 10 cases which in the k t h case 1 0 0 0 = 1 1 1 k + m for a positive integer m .
From the 10 cases we got n ∈ S with
S = {28, 46, 55, 64, ..., 1000} = {28, 9(5) + 1, 9(6) + 1, ..., 9(111) + 1}.
It implies that there are exactly 108 positive integer n possible.
Problem Loading...
Note Loading...
Set Loading...
As Johanz points out, we need to count the numbers n such that the system a + 1 1 b + 1 1 1 c = 1 0 0 0 , a + 2 b + 3 c = n has non-negative integer solutions a , b , c . Subtracting the equations from each other, we see that 9 b + 1 0 8 c = 1 0 0 0 − n , so that 1 0 0 0 − n is divisible by 9. We can write n = 1 0 0 0 − 9 k for some 0 ≤ k ≤ 1 1 1 .
Our equations can now be written as a = 2 1 c + 1 0 0 0 − 1 1 k , b = k − 1 2 c . We need to choose k and c so that both a and b come out non-negative, meaning that 1 2 c ≤ k ≤ 1 1 2 1 c + 1 0 0 0 . If we let c = 0 , we get solutions 0 ≤ k ≤ 9 0 . If we let c = 7 , we get solutions 8 4 ≤ k ≤ 1 0 4 .(Why don't we need to check 1 ≤ c ≤ 6 ).If we let c = 8 , we get solutions 9 6 ≤ k ≤ 1 0 6 . If we let c = 9 , we get the single solution k = 1 0 8 . Thus there are 1 0 8 solutions overall, namely 0 ≤ k ≤ 1 0 6 and k = 1 0 8 .
This work may become clearer if you look at the "feasible region" in the c − k plane, 1 2 c ≤ k ≤ 1 1 2 1 c + 1 0 0 0 , a triangle.