Jamie loves Christmas, and she wants to have the best outdoor decorations on her street. Unfortunately, Jamie has a limited budget for new decorations. Luckily, the Christmas store closest to Jamie’s house holds a holiday sale, starting on December 1st! The man who runs the store is also a recreational mathematician, and he has a very specific way of calculating the discount.
This Christmas discount only applies to three items: "holiday lights", "festive wreaths", and "winter ornaments". The discount (in hundredths of cents) is calculated by squaring the number of lights purchased, cubing the number of wreaths, then taking those two number and multiplying by the number of ornaments, and then multiplying that number by 5 .
Jamie wants to buy a total of 1 8 decorations from the store, but also wants to save as much money as possible. What number of lights should Jamie purchase in order to maximize her discount?
This problem is part of The 12 Days of Math-Mas 2018
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.
We have two functions, one representing the discount, as D ( l , w ) = 5 l 2 w 3 o and a one representing the number of items Jamie wants to purchase. We can express this as f ( l , w , o ) = l + w + o = 1 8 . Using Lagrange optimization:
⇒ ∇ D ( l , w , o ) = λ ∇ f ( l , w , o )
⇒ ⎣ ⎡ ∂ l ∂ D ( l , w , o ) ∂ w ∂ D ( l , w , o ) ∂ o ∂ D ( l , w , o ) ⎦ ⎤ = λ ⎣ ⎡ ∂ l ∂ f ( l , w , o ) ∂ w ∂ f ( l , w , o ) ∂ o ∂ f ( l , w , o ) ⎦ ⎤ ⇒ ⎣ ⎡ 1 0 l w 3 o 1 5 l 2 w 2 o 5 l 2 w 3 ⎦ ⎤ = λ ⎣ ⎡ 1 1 1 ⎦ ⎤
So we can see that we have a system of equations:
⇒ 1 0 l w 3 o = λ , 1 5 l 2 w 2 o = λ , 5 l 2 w 3 = λ , l + w + o = 1 8
When we solve this system using the first three equations, we can represent the variables in terms of each other. We can then plug these values into the fourth equation, to get our values for the number of items bought. Solving for different variables using the first three equations, we get multiple different possible values for the different parameters when we plug these values into the fourth equation, but once we plug each these different sets of values back into the original function representing the discount: D ( l , w ) = 5 l 2 w 3 o , we see that the solution providing the maximum discount is l = 6 , w = 9 , o = 3 , therefore the answer is l = 6 .
@Jack Ceroni : I would like you to explain the discount calculation. If we consider buying 6 l + 9 w + 3 o, D=11475. If she buys 1 l + 16 w + 1 o, D=20485. We could even get D=24565 with no lights and 17 w. So, I would think this is a better option, but I am sure I'm wrong. Could you tell me where I am wrong ? Thanks a lot and happy Christmas ! Gerard.
Log in to reply
Are you sure you calculated the discount correctly? When I plug in the numbers for the optimal solution, I'm getting 393660.
Log in to reply
I am sorry, I probably miss something in reading the problem... I just made (6^2+9^3) x 5 x 3=11475. I do not see what calculation you made to get 393660. Thanks.
Note: This is not a solution...........
@Jack Ceroni
Ummmm........doesn't a discount of 393,660% seem to be a LOT.........?? :P
The discount units are one hundredth of a cent, not %, which means the discount is of 1 0 0 × 1 0 0 3 9 3 , 6 6 0 = 3 9 . 3 dollars. Also, this is the solutions section, so people would appreciate it if you could actually post solutions .
Problem Loading...
Note Loading...
Set Loading...
Let number of lights = x , wreaths = y , and ornaments = z .
Total discount = 5 x 2 y 3 z units
And, x + y + z = 1 8
To maximize the discount, we use A.M ≥ G.M
6 2 x + 2 x + 3 y + 3 y + 3 y + z ≥ ( 4 ⋅ 2 7 x 2 y 3 z ) 6 1
The equality only occurs if all terms of the sequence are equal, i.e. 2 x = 3 y = z
Hence, 2 z + 3 z + z = 1 8
∴ z = 3
Thus, x = 2 z = 6