How many ways can you express n as the sum of positive integers?

Click For Summary

Homework Help Overview

The discussion revolves around the problem of expressing a positive integer n as the sum of positive integers, where the order of addition does not matter. Participants explore the concept of partitions and related functions.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning, Problem interpretation, Assumption checking

Approaches and Questions Raised

  • Participants discuss the function f(x) that counts the number of ways to express integers as sums, with some attempting to identify patterns in the values provided. Others question the relationship between the variables 'n' and 'a', and some suggest looking into the partition function for further understanding.

Discussion Status

The discussion is ongoing, with various interpretations and approaches being explored. Some participants have offered insights into recursive formulas and generating functions, while others have pointed out potential oversights in counting partitions. There is no explicit consensus yet.

Contextual Notes

Participants note the importance of considering the order of terms in partitions and the challenges associated with finding a closed form for the partition function. There is also mention of the original poster's calculations and assumptions that may need clarification.

ehrenfest
Messages
2,001
Reaction score
1
[SOLVED] expressions of integers

Homework Statement


Let n be a positive integer. How many ways can you express a as the sum of positive integers? Order of addition does not matter.

EDIT: change "a" to "n" in the second sentence

Homework Equations


The Attempt at a Solution


Let f(x) be the function that gives the number of ways you can express x as the sum of positive integers? Order of addition does not matter.
f(1)=1
f(2)=2
f(3)=3
f(4)=5
f(5)=7

I do not see the pattern. I was hoping for Fibonacci numbers...
 
Last edited:
Physics news on Phys.org
ehrenfest said:

Homework Statement


Let n be a positive integer. How many ways can you express a as the sum of positive integers? Order of addition does not matter.
How is n related to a?
 
looks to me like a recursive formula. "2" can be written as a sum of integers just one way: 1+ 1. Obviously 3 can be written 2+ 1 or 1+ 2 and then the 2 in that can be written in one way: 2+ 2(1)= 4. 3 can be written is 3+ 1 and 1+ 3 and, in addition to that 3 can be written if 4 ways: 2+ 2(4)= 10. In general, if k can be written in n(k) ways, then k+ 1 can be written as (k)+ 1 or 1+ (k), which is 2 ways and then the (k) can be written in n(k) ways: n(k+1)= 2+ 2n(k). Once you found the formula from that you can prove it by induction.
 
That misses some of the partitions, e.g. 4=2+2 cannot be obtained from the partitions of 3. Also, judging by the OP's calculations, I don't think he's paying attention to the order of the terms in the partition, i.e. 1+(k) and (k)+1 count as one.

As far as I'm aware, there is no nice closed form for the partition function in general, although there are formulas for particular types of partitions. A good way to work with partitions is via generating series (a good book on these matters is Generatingfunctionology, available for free online). For example, here's an expression due to Euler (IIRC):

\sum_{n \geq 0} f(n) x^n = \prod_{n \geq 1} \frac{1}{(1-x^n)}
 
morphism said:
As far as I'm aware, there is no nice closed form for the partition function in general,

No wonder I was having trouble with it.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
Replies
7
Views
4K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 8 ·
Replies
8
Views
5K
Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
5
Views
2K