What Is the Maximum Value of $pq+qr+rs$ When $p+q+r+s=63$?

In summary, the conversation discussed a problem involving positive integers with a sum of 63 and determining the maximum value of a specific expression. The participants shared different methods for approaching the problem, including using a rectangle and a quadrilateral. The solution was also provided and another method was suggested for solving similar problems.
  • #1
anemone
Gold Member
MHB
POTW Director
3,883
115
If $p,\,q,\,r,\,s$ are positive integers with sum 63, what is the maximum value of $pq+qr+rs$?
 
Mathematics news on Phys.org
  • #2
Two observations:
1) To max rectangular Area for given perimeter. use square. (want squares)
2) Area increases as the square of a side. (want BIG squares)

With some trial and error, I choose
{p, q, r, s} = {1, 2, 30, 30}
for answer of 962
 
  • #3
RL Brown's starting is right but he overlooked that it need not be a square. A rectangle shall do

p = 1, q = 30, r = 31 , s =1 gives 991

The discussion is informal but if we can raise p and q so that the product is the maximum we can keep r and s as low as possible which gives the value as above

edited to provide the solution

$pq + qr + rs = pq + qr + rs + sp - sp = (p+r)(q+s) - sp$

now we need to maximize $(p+r)(q+s)$ and minimise sp as s and p are in differenent expression

p+r and q + s should be as close as possible as p+r + q + s = 63

so p+ q = 32 and r+ s = 31 or viceversa and p = s = 1

so p = 1 , q = 31, r = 30, s = 1 or p =1, q = 30, r = 31, s = 1
s
 
Last edited:
  • #4
RLBrown said:
Two observations:
1) To max rectangular Area for given perimeter. use square. (want squares)
2) Area increases as the square of a side. (want BIG squares)

With some trial and error, I choose
{p, q, r, s} = {1, 2, 30, 30}
for answer of 962

kaliprasad said:
RL Brown's starting is right but he overlooked that it need not be a square. A rectangle shall do

p = 1, q = 30, r = 31 , s =1 gives 991

The discussion is informal but if we can raise p and q so that the product is the maximum we can keep r and s as low as possible which gives the value as above

Thanks, RLBrown for participating in this challenge problem. Kaliprasad is right, a rectangle would make the argument more justifiable and thank you so much for giving us another insight to approach this kind of problem using the quadrilateral method.:cool:

kaliprasad said:
edited to provide the solution

$pq + qr + rs = pq + qr + rs + sp - sp = (p+r)(q+s) - sp$

now we need to maximize $(p+r)(q+s)$ and minimise sp as s and p are in differenent expression

p+r and q + s should be as close as possible as p+r + q + s = 63

so p+ q = 32 and r+ s = 31 or viceversa and p = s = 1

so p = 1 , q = 31, r = 30, s = 1 or p =1, q = 30, r = 31, s = 1

Thanks for participating, kaliprasad and your answer is correct!(Smile)

Here is another method that I want to share with the community here that I think you all will find it very illuminating:

For all real $p, \,q$, we have $(p-q)^2\ge 0$. So, $p^2+q^2\ge2pq$, hence $(p+q)^2\ge4pq$ or equivalently, $pq\le\dfrac{(p+q)^2}{4}$.

Letting $x=p+r$ and $y=q+s$ gives $(p+r)(q+s)\le\dfrac{(p+q+r+s)^2}{4}$ so $pq+qr+rs+sp\le\dfrac{63^2}{4}=992.25$.

Since $p,\,q,\,r,\,s$ are positive integers, the last inequality can be written as $pq+qr+rs+sp\le992$. Hence $pq+qr+rs\le992-sp\le991$.

It remains to show that 991 is achievable. Suppose $pq+qr+rs=991$ and $p=s=1$, then $(1+q)(1+r)=992=2^5\cdot31$. So $q=30$ and $r=31$ is a solution. Thus the maximum of $pq+qr+rs$ is 991.
 
  • #5


To find the maximum value of $pq+qr+rs$, we can use the concept of optimization by setting up the problem as a constrained optimization. The constraint is that $p,q,r,s$ are positive integers with a sum of 63.

Let us define a function $f(p,q,r,s) = pq+qr+rs$. We want to find the maximum value of $f(p,q,r,s)$ subject to the constraint $p+q+r+s = 63$.

Using the method of Lagrange multipliers, we can set up the following equations:

$\frac{\partial f}{\partial p} = q+r = \lambda$
$\frac{\partial f}{\partial q} = p+s = \lambda$
$\frac{\partial f}{\partial r} = q+s = \lambda$
$\frac{\partial f}{\partial s} = p+r = \lambda$
$p+q+r+s = 63$

Solving these equations, we get $p=q=r=s=21$. Therefore, the maximum value of $pq+qr+rs$ is $21\times 21 + 21\times 21 + 21\times 21 = 1323$.

In conclusion, the maximum value of $pq+qr+rs$ is 1323 when $p=q=r=s=21$, and the sum of $p,q,r,s$ is 63.
 

Related to What Is the Maximum Value of $pq+qr+rs$ When $p+q+r+s=63$?

1. How do you find the maximum of a sum?

To find the maximum of a sum, you need to first identify the numbers or variables that will be added together. Then, you can use a mathematical formula or algorithm to determine the highest possible result.

2. What is the purpose of finding the maximum of a sum?

The purpose of finding the maximum of a sum is to understand the highest possible value that can be obtained by adding a set of numbers or variables together. This can be useful in various mathematical and scientific applications, such as optimization problems and data analysis.

3. Is there a specific method for finding the maximum of a sum?

Yes, there are various methods that can be used to find the maximum of a sum. Some common methods include using derivatives, setting up and solving equations, and using computer algorithms.

4. Can the maximum of a sum be negative?

Yes, the maximum of a sum can be negative if the numbers or variables being added together are negative. However, if all the numbers or variables are positive, the maximum of the sum will also be positive.

5. What is the difference between finding the maximum of a sum and finding the sum of all maximum values?

Finding the maximum of a sum involves finding the highest possible result when adding a set of numbers or variables together. On the other hand, finding the sum of all maximum values involves adding together the highest values from a set of numbers or variables. The former focuses on the overall maximum result, while the latter focuses on individual maximum values within the set.

Similar threads

Replies
1
Views
757
  • General Math
Replies
1
Views
999
Replies
15
Views
4K
Replies
9
Views
2K
  • General Math
Replies
5
Views
2K
  • General Math
Replies
4
Views
2K
  • General Math
Replies
5
Views
1K
  • General Math
Replies
2
Views
1K
Back
Top