Number of positive integer solutions for given equation

  • Thread starter Thread starter songoku
  • Start date Start date
  • Tags Tags
    Integer Positive
Click For Summary

Homework Help Overview

The problem involves finding the number of triplets (x, y, z) of positive integers that satisfy the equation x + y + 2z = n, where n is an odd integer greater than or equal to 5. The discussion revolves around combinatorial reasoning and the interpretation of the equation in terms of integer partitions.

Discussion Character

  • Exploratory, Mathematical reasoning, Problem interpretation

Approaches and Questions Raised

  • Participants explore specific cases by substituting values for n and analyzing the resulting combinations of (x, y, z). There are discussions about the number of choices for z and how that affects the possible values for x and y. Some participants also reference combinatorial formulas related to partitions of integers.

Discussion Status

The discussion includes various approaches to understanding the problem, with some participants providing examples and others referencing combinatorial principles. There is no explicit consensus, but several productive lines of reasoning are being explored.

Contextual Notes

Some participants note that the problem is a combinatorics question and mention the distinction between compositions and partitions of integers. There is also a reference to the age of the homework problem, indicating it may not be a recent inquiry.

songoku
Messages
2,512
Reaction score
394

Homework Statement


Let n be an odd integer ≥ 5. Find the number of triplets (x, y, z) of positive integers which satisfy the equation
x + y + 2z = n

Homework Equations


Do not know

The Attempt at a Solution


Let n = 2k + 1, k ≥ 2

x + y + 2z = n
2z = 2k + 1 - (x + y) ≤ 2k + 1 - 2 (because x + y ≥ 2)
2z ≤ 2k - 1
Then stuck

The answer is (n - 1)(n - 3)/4

Thanks
 
Physics news on Phys.org
Sometimes these are easiest to look at with a few examples.
If n = 5, then (1,2,1) and (2,1,1) are your only choices.
If n = 7, you have more. For z = 1, you have (1,4,1), (2,3,1),(3,2,1),(4,1,1) and for z=2 you have (1,2,2),(2,1,2).
What I see is that for any z, of which you are limited in choices, you will have an appropriate number of choices for (x+y)=n-2z.

So how many options for z?
For each of those options how many choices for y do you have? Once z and y and defined, you have only one choice for x.
 
  • Like
Likes   Reactions: songoku
RUber said:
Sometimes these are easiest to look at with a few examples.
If n = 5, then (1,2,1) and (2,1,1) are your only choices.
If n = 7, you have more. For z = 1, you have (1,4,1), (2,3,1),(3,2,1),(4,1,1) and for z=2 you have (1,2,2),(2,1,2).
What I see is that for any z, of which you are limited in choices, you will have an appropriate number of choices for (x+y)=n-2z.

So how many options for z?
For each of those options how many choices for y do you have? Once z and y and defined, you have only one choice for x.

I think I get it. Thanks
 
This is a combinatorics question, not really a pre-calculus question.

Throughout, order matters and duplicates are allowed.

How many ways are there to write n as the sum of k nonnegative integers? Answer: (n+k-1) choose (k-1). Why? Place n 1s and k-1 separators.

How many ways are there to write n as the sum of k positive integers? Answer: (n-1) choose (k-1). Why? Write n-k as the sum of k nonnegative integers and then add 1 to each of them.

Assume that n is even. How many ways are there to write n as the sum of k even positive integers? Answer: (n/2 - 1) choose (k-1). Why? Write n/2 as the sum of k positive integers and then multiply each of them by 2.

Assume that n is odd. How many ways are there to write n as the sum of k positive integers where the last is even and exactly one of the others is odd? (k-1) (((n-1)/2) choose (k-1))
Why? Write n+1 as the sum of k positive even integers and then subtract 1 from one of the first k-1.

To answer your question, let k=3.
 
  • Like
Likes   Reactions: songoku
Prof B said:
This is a combinatorics question, not really a pre-calculus question.
It's also homework from 6 years ago!
 
Correction: Partitions into k positive integers where order matters are actually called k-compositions. I don't know what name is given to partitions into k natural numbers where order matters.
 

Similar threads

Replies
6
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 49 ·
2
Replies
49
Views
5K
Replies
9
Views
4K
Replies
2
Views
3K
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
6K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K