Day 1: It's that Time of Year Again!

Calculus Level 3

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 5 .

Jamie wants to buy a total of 18 18 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


The answer is 6.

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.

3 solutions

Parth Sankhe
Dec 1, 2018

Let number of lights = x x , wreaths = y y , and ornaments = z z .

Total discount = 5 x 2 y 3 z 5x^2y^3z units

And, x + y + z = 18 x+y+z=18

To maximize the discount, we use A.M ≥ G.M

x 2 + x 2 + y 3 + y 3 + y 3 + z 6 ( x 2 y 3 z 4 27 ) 1 6 \frac {\frac {x}{2} + \frac {x}{2} + \frac {y}{3} + \frac {y}{3} + \frac {y}{3} + z}{6} ≥ (\frac {x^2y^3z}{4\cdot 27})^{\frac {1}{6}}

The equality only occurs if all terms of the sequence are equal, i.e. x 2 = y 3 = z \frac {x}{2}=\frac {y}{3}=z

Hence, 2 z + 3 z + z = 18 2z+3z+z=18

z = 3 \therefore z=3

Thus, x = 2 z = 6 \large x=2z=6

Jack Ceroni
Dec 2, 2018

We have two functions, one representing the discount, as D ( l , w ) = 5 l 2 w 3 o D(l, w) = 5l^2w^3o and a one representing the number of items Jamie wants to purchase. We can express this as f ( l , w , o ) = l + w + o = 18 f(l, w, o) = l \ + \ w \ + \ o \ = \ 18 . Using Lagrange optimization:

D ( l , w , o ) = λ f ( l , w , o ) \Rightarrow \ \nabla \ D(l, w, o) \ = \ \lambda \nabla \ 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 ) ] [ 10 l w 3 o 15 l 2 w 2 o 5 l 2 w 3 ] = λ [ 1 1 1 ] \Rightarrow \ \begin{bmatrix} \frac{\partial}{\partial l} D(l, w, o) \\ \frac{\partial}{\partial w} D(l, w, o) \\ \frac{\partial}{\partial o} D(l, w, o) \end{bmatrix} \ = \ \lambda \ \begin{bmatrix} \frac{\partial}{\partial l} f(l, w, o) \\ \frac{\partial}{\partial w} f(l, w, o) \\ \frac{\partial}{\partial o} f(l, w, o) \end{bmatrix} \ \Rightarrow \ \begin{bmatrix} 10lw^3o \\ 15l^2w^2o \\ 5l^2w^3 \end{bmatrix} \ = \ \lambda \ \begin{bmatrix} 1 \\ 1 \\ 1 \end{bmatrix}

So we can see that we have a system of equations:

10 l w 3 o = λ , 15 l 2 w 2 o = λ , 5 l 2 w 3 = λ , l + w + o = 18 \Rightarrow \ 10lw^3o \ = \ \lambda, \ 15l^2w^2o \ = \ \lambda, \ 5l^2w^3 \ = \ \lambda, \ l \ + \ w \ + \ o \ = \ 18

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 D(l, w) = 5l^2w^3o , we see that the solution providing the maximum discount is l = 6 , w = 9 , o = 3 l \ = \ 6, w \ = \ 9, o \ = \ 3 , therefore the answer is l = 6 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.

Gerard Boileau - 2 years, 6 months ago

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.

Jack Ceroni - 2 years, 6 months ago

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.

Gerard Boileau - 2 years, 6 months ago
Aaghaz Mahajan
Dec 1, 2018

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 393 , 660 100 × 100 = 39.3 \frac {393,660}{100×100}=39.3 dollars. Also, this is the solutions section, so people would appreciate it if you could actually post solutions .

Parth Sankhe - 2 years, 6 months ago

Log in to reply

K.........didn't see that.............

Aaghaz Mahajan - 2 years, 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...