Brilli the Ant decided to improve the monetary system of Brilliant by introducing a series of new Brill notes featuring Brilli doing some of her favorite problems. The current monetary unit of Brilliant is 1 Brill. After long discussions in the parliament, the following restrictions were agreed upon.
Each of the new Brill notes must be worth an integer number of Brills.
Each of the new Brill notes must be worth at least 1 0 0 Brills.
For all integers N ≥ 1 0 0 0 , N Brills must be expressible as a sum of several new Brill notes. Some of these notes could have the same monetary value.
What is the smallest number of new types of Brill notes that can satisfy these requirements?
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.
The following notes work: $ 1 0 0 , $ 1 0 1 , $ 1 1 0 , $ 1 1 1 . The encoding for $ N is:
Let a = N m o d 1 0 0 and divide a by 1 0 : a = 1 0 q + r .
Then if q + r ≤ 1 0 , N = q × $ 1 1 0 + r × $ 1 0 1 + ( 1 0 − q − r ) × $ 1 0 0
Otherwise if q ≥ r . N = ( q − r ) × $ 1 1 0 + r × $ 1 1 1 + ( 1 0 − q ) × $ 1 0 0
Otherwise N = q × $ 1 1 1 + ( r − q ) × $ 1 0 1 + ( 1 0 − r ) × $ 1 0 0
To prove that there is no solution with 3 notes we can proceed in a similar vein. Let the note values be X < X + A < X + B . Then it is necessary (but perhaps not sufficient) to be able to represent all values m o d X as m A + n B where m + n ≤ 1 0 , where the 1 0 comes from the fact that 1 0 X ≥ 1 0 0 0 so we need to be able to generate all values in the window [ 1 0 X , 1 1 X ) .
However there are only 1 2 C 2 possible values of m , n such that m + n ≤ 1 0 . This is less than the minimum values of X which is 100, therefore there is no 3-note solution.
First of all we need to obtain 1000 B. A Brill note of 100 B could do that. Now we need the possibility of changing the units, eg a note of 101 B. With these two tipes we can create any value >1000 with 0 in the tens place. With a note of 110 B we could change the tens digit, but it's not enough for values like 1099 cause we can't reach that value changing either the tens or the units. A new note of 111 will do the job.
So the solution is 4: 100, 101, 110, 111 is a possibility.
How do you know 3 isn't achievable?
Log in to reply
How do you know 3 isn't achievable?
That's the very question that has been stumping me for hours, but I've got it now ...
Suppose the bills are worth a , b , c Brills, respectively. There are only ( 2 1 2 ) = 6 6 nonnegative integer pairs x , y with x + y ≤ 1 0 , and for each such pair there is at most one integer z such that 1 0 0 0 ≤ a x + b y + c z ≤ 1 0 9 9 . Therefore, at most 66 of the integers from 1000 to 1099 can be made, contradicting Restriction #3.
This is a variation of Frobenius Coin Problem, largest integer that CAN'T be represented as the linear combination of three integers, let's call them {x, y, z} and gcd(x, y, z) = 1 , has a lower bound of 3 ∗ x ∗ y ∗ z − x − y − z . Which is larger than 1000 , for any x, y, z >= 100 .
Note that there's no point in talking about greatest common divisor being anything different than one, since in that case you wouldn't be able to represent any number not divisible by gcd(x, y, z) .
I used 100, 101, 106, 121.
it's equally easy to prove that 101, 104, 116, 164 -- every other binary -- is an option.
Problem Loading...
Note Loading...
Set Loading...
Consider the quadruple { 1 0 1 , 1 0 5 , 1 1 0 , 1 5 0 } of Brill notes. I claim all values N ≥ 1 0 0 0 are expressible using these. First note that we need to prove it for 1 0 0 0 to 1 1 0 0 , as all higher numbers can be achieved by adding some multiple of 101 to these numbers.
If b , c < 5 , we can write it as N = c ( 1 0 1 ) + b ( 1 1 0 ) + ( 1 0 − b − c ) 1 0 0 for ( 1 0 − b − c ) = 3 , 6 , 7 , 9 since 3 0 0 = 2 ( 1 5 0 ) , 6 0 0 = 4 ( 1 5 0 ) , 9 0 0 = 6 ( 1 5 0 ) , 7 0 0 = 1 5 0 + 5 ( 1 1 0 ) .
for ( 1 0 − b − c ) = 2 , 4 write N = c ( 1 0 1 ) + b ( 1 1 0 ) + 2 0 0 = 4 ( 1 0 5 ) + c ( 1 0 1 ) + 1 1 0 ( b − 2 ) [note b > 2 ] and N = c ( 1 0 1 ) + b ( 1 1 0 ) + 4 0 0 = 2 ( 1 5 0 ) + 2 ( 1 0 5 ) + c ( 1 0 1 ) + 1 1 0 ( b − 1 ) [note b > 1 ] respectively.
for 1 0 − b − c = 5 → ( b + c ) = 5 or equivalently b , c = { 1 , 4 } , { 2 , 3 } , { 3 , 2 } , { 4 , 1 } and correspondingly, 1 0 1 4 = 9 ( 1 0 1 ) + 1 0 5 ; 1 0 2 3 = 3 ( 1 0 1 ) + 4 ( 1 0 5 ) + 2 ( 1 5 0 ) ; 1 0 3 2 = 2 ( 1 0 1 ) + 2 ( 1 5 0 ) + 1 1 0 + 4 ( 1 0 5 ) ; 1 0 4 1 = 1 0 1 + 2 ( 1 5 0 ) + 2 ( 1 1 0 ) + 4 ( 1 0 5 ) .
for 1 0 − b − c = 8 → ( b + c ) = 2 or equivalently b , c = { 2 , 0 } , { 0 , 2 } , { 1 , 1 } and correspondingly, 1 0 2 0 = 4 ( 1 0 5 ) + 4 ( 1 5 0 ) ; 1 0 0 2 = 2 ( 1 0 1 ) + 1 5 0 + 4 ( 1 1 0 ) + 2 ( 1 0 5 ) ; 1 0 1 1 = 1 0 1 + 5 ( 1 1 0 ) + 1 5 0 + 2 ( 1 0 5 ) .
If b > 5 , c < 5 , we can write N = 1 5 0 + c ( 1 0 1 ) + ( b − 5 ) ( 1 1 0 ) + ( 1 4 − b − c ) 1 0 0 & then proceed as before to prove for all. If b < 5 , c > 5 , we can write N = 1 0 5 + ( c − 5 ) ( 1 0 1 ) + b ( 1 1 0 ) + ( 1 4 − b − c ) 1 0 0 & proceed as before. If b > 5 , c > 5 , we can write N = 1 5 0 + 1 0 5 + ( c − 5 ) ( 1 0 1 ) + ( b − 5 ) ( 1 1 0 ) + ( 1 8 − b − c ) 1 0 0 & proceed as before.
Thus we have shown the above quadruple satisfies the requirements. Now we are left to show 3 Brill notes are not enough.
Consider not. Let the 3 Brill notes be a < b < c . Consider the Brill values from 1 0 0 0 to 1 1 a + 1 . Any number among them n must be expressible as n = X a + Y b + Z c , for 0 ≤ X , Y , Z and X + Y + Z < 1 1 & for smaller values, strictly X + Y + Z < 1 0 . Since a < b < c , & since no Brill note among the three can be of arbitrarily large value(or else the other two can satisfy it's use), we conclude X + Y + Z > 7 . So for { X , Y , Z } , we have ( 2 1 0 ) + ( 2 1 1 ) = 1 0 0 choices (though actually choices in the specified range are much less), which cannot make up for 101 values. Thus 4 is the minimum possible.