I'm visiting an unfamiliar state. This state has a sales tax of 6 . 1 % but I don't know this. All I know is the tax rate is of the form a . b % where a and b are single digits.
I buy an item at a store and am able to deduce the tax rate from the item's price and the tax amount as listed on the receipt. What is the minimum cost of the item that would allow me to make such a deduction? (Answer in dollars, rounded to the nearest cent.)
Note: The tax amount listed on the receipt is rounded to the nearest cent.
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 didn't have time to enter my solution when I submitted this. Your solution uses the same reasoning as I would have but is much more thorough. I don't know that there's a more elegant way, refining the manual search to start at 500 cents is the key to beginning an efficient manual search in my opinion.
Incidentally, I chose 6.1% because it has the largest answer among all choices from 5.1% to 6.9%.
Log in to reply
Thanks for letting me know; I waited a while before posting this because even though I felt my approach was valid I didn't like the way it ended up playing out. It annoyed me how much the simple rounding act made the analysis rougher, for lack of a better word. It does make me feel better knowing your thought process was similar. Your problems are always a fun challenge, I enjoy working on them (even if I can't always solve them.)
In order to be able to determine a tax rate of 6 . 1 % assuming we know it has the form a . b % , we simply need to be able to differentiate it from 6 . 0 % and 6 . 2 % . Writing the item's cost C in cents and the tax T also in cents, we have 0 . 0 6 C < T − 0 . 5 ≤ 0 . 0 6 1 C < T + 0 . 5 ≤ 0 . 0 6 2 C and solving for C yields max { 6 1 1 0 0 0 T − 5 0 0 , 6 2 1 0 0 0 T + 5 0 0 } ≤ C < min { 6 0 1 0 0 0 T − 5 0 0 , 6 1 1 0 0 0 T + 5 0 0 }
For T ≤ 6 0 , this inequality becomes 6 2 1 0 0 0 T + 5 0 0 ≤ C < 6 0 1 0 0 0 T − 5 0 0 which implies 6 2 1 0 0 0 T + 5 0 0 < 6 0 1 0 0 0 T − 5 0 0 ⟺ T > 3 0 . 5 ⟺ T ≥ 3 1 , so we will define Δ = T − 3 1 and rewrite the inequality in terms of Δ using 6 2 1 0 0 0 ( Δ + 3 1 ) + 5 0 0 = 1 6 Δ + 5 0 8 + 3 1 4 Δ + 2 6 0 1 0 0 0 ( Δ + 3 1 ) − 5 0 0 = 1 6 Δ + 5 0 8 + 3 2 Δ + 1 . Therefore, noting M : = C − 1 6 Δ − 5 0 8 is an integer, we have for 0 ≤ Δ ≤ 2 9 , 3 1 4 Δ + 2 ≤ M < 3 2 Δ + 1
Now, minimizing Δ will minimize T and therefore minimize C , so we want to find the smallest integer Δ such that 0 ≤ Δ ≤ 2 9 and [ 3 1 4 Δ + 2 , 3 2 Δ + 1 ) ∩ Z = ∅
By direct observation, the smallest such solution is Δ = 2 , for which M = 1 . Therefore C = 1 6 Δ + 5 0 8 + M = 1 6 ( 2 ) + 5 0 8 + 1 = 5 4 1 which in dollars gives an answer of 5 . 4 1 .
Problem Loading...
Note Loading...
Set Loading...
[This feels like a very crude approach; hopefully someone else can post a more elegant way to find the answer.]
We are looking for the lowest cost, call it x , such that when we calculate 6%, 6.1% and 6.2% of x , the amounts rounded to the nearest cent would all be different, and since we are trying to minimize the cost, it stands to reason that the rounded amounts of cents would be consecutive whole numbers.
To simplify the calculations a little, we shall assume that x is the cost in cents rather than in dollars. Then we are looking for x , n ∈ N such that Round ( 0 . 0 6 x ) = n − 1 , Round ( 0 . 0 6 1 x ) = n and Round ( 0 . 0 6 2 x ) = n + 1 .
The three unrounded amounts are evenly spaced, separated by 0 . 0 0 1 x ; to minimize x , we need to minimize these gaps. This can be achieved by finding x such that 0 . 0 6 1 x is "very" close to n , while 0 . 0 6 x and 0 . 0 6 2 x are "slightly" below n − 0 . 5 and above n + 0 . 5 respectively, as shown below.
So we need 0 . 0 0 1 x > 0 . 5 , i.e. x > 5 0 0 . Since 0 . 0 6 1 ( 5 0 0 ) = 3 0 . 5 , the tax amount n must be at least 3 1 cents. The cost that would give that exact tax amount is ≈ 5 0 8 . 2 0 cents, so we check what happens at x = 5 0 8 cents:
6 % : 6 . 1 % : 6 . 2 % : 5 0 8 ( 0 . 0 6 ) = 3 0 . 4 8 5 0 8 ( 0 . 0 6 1 ) = 3 0 . 9 8 8 5 0 8 ( 0 . 0 6 2 ) = 3 1 . 4 9 6 ⟹ ⟹ ⟹ n = 3 0 cents n = 3 1 cents n = 3 1 cents
The two higher tax rates give the same rounded tax amount, so this is not our solution. We try n = 3 2 cents, but the cost for this tax amount is ≈ 5 2 4 . 5 9 cents which is not a good sign as it's further from a whole number cost than our previous attempt; and indeed this again does not yield three different rounded tax amounts. However, when n = 3 3 cents, we find that the cost that would give that exact tax amount is ≈ 5 4 0 . 9 8 cents, which is promising as it's very close to a whole amount; we try x = 5 4 1 cents:
6 % : 6 . 1 % : 6 . 2 % : 5 4 1 ( 0 . 0 6 ) = 3 2 . 4 6 5 4 1 ( 0 . 0 6 1 ) = 3 3 . 0 0 1 5 4 1 ( 0 . 0 6 2 ) = 3 3 . 5 4 2 ⟹ ⟹ ⟹ n = 3 2 cents n = 3 3 cents n = 3 4 cents
which gives us the required three different rounded tax amounts. So the cost we're looking for is 5 4 1 cents, i.e. $ 5 . 4 1