How is it called this function ?

  • Thread starter zetafunction
  • Start date
  • Tags
    Function
In summary, the function being discussed is P(n,k), which represents the number of ways to express an integer n as the sum of k different or repeated integers. To compute P(n,k), one can use the recurrence equation P(n,k) = P(n-k) and restrict n and k to be positive integers. This relates to the theory of partitions and the Ferrers diagram. However, this equation only holds for n ≤ 2k so further analysis is needed for larger values of n.
  • #1
zetafunction
391
0
how is it called this function ??

given a number 'n' how is it called this function [tex] P(n,k) [/tex]

so P(n,k) is the number of ways in which an integer 'n' can be expressed as the sum (with repeated summands) of k integers different or not

then for any integers n and k how could i compute [tex] P(n,k) [/tex] ? is there a recurrence equation ??
 
Physics news on Phys.org
  • #2


Would it be useful for you to restrict n and k to be positive integers? If so, then you're dealing with the theory of partitions. (If you allow negative integers, then you get infinitely many solutions. Say n = 5 and k = 3. In addition to solutions such as 5 = 3 + 1 + 1, you also get 5 = 5 + 1 + (-1) = 5 + 2 + (-2) = 5 + 3 + (-3), and so on.)

Assuming that you're interested in the case where n, k are positive, we have the following

Theorem: The number of partitions of n into k parts is equal to the number of partitions of n into parts the largest of which is k.

The proof is to consider the Ferrers diagram (see the Wikipedia article for the definition) of such partitions.

It's now easy to simplify your function P(n,k) (By the way, the Wiki article uses P(n,k) for a different function). Let P(n) be the number of unrestricted partitions of n. Then

P(n,k) = P(n-k)

The proof is simple: For each partition of n in which the largest part is k, we have a corresponding partition of n - k. In other words, if

[tex]n = k + k_1 + k_2 + \cdots + k_m[/tex]

then

[tex]n - k = k_1 + k_2 + \cdotd + k_m[/tex]

Thus, you can translate P(n,k) into P(n-k) and use all of the techniques and such from partition theory, only a small part of which is described in the Wiki article.

HTH
 
  • #3


ok thanks ... :)
 
  • #4


Petek said:
...Let P(n) be the number of unrestricted partitions of n. Then

P(n,k) = P(n-k)

The proof is simple: For each partition of n in which the largest part is k, we have a corresponding partition of n - k. In other words, if

[tex]n = k + k_1 + k_2 + \cdots + k_m[/tex]

then

[tex]n - k = k_1 + k_2 + \cdotd + k_m[/tex]

Thus, you can translate P(n,k) into P(n-k) and use all of the techniques and such from partition theory, only a small part of which is described in the Wiki article.

HTH

But parts on the right hand side of [tex]n - k = k_1 + k_2 + \cdotd + k_m[/tex] still need to be smaller or equal to k. So your statement holds only for [tex]n \leq 2k [/tex]. Or am I missing something?
 
  • #5


FroChro said:
But parts on the right hand side of [tex]n - k = k_1 + k_2 + \cdotd + k_m[/tex] still need to be smaller or equal to k. So your statement holds only for [tex]n \leq 2k [/tex]. Or am I missing something?

No, you're right. Have to think some more. Thanks for pointing that out!
 

1. What is the function called?

The function is called by its name, which is typically chosen to reflect its purpose or what it does.

2. How do I find the name of a function?

The name of a function can usually be found in the code or documentation of the programming language or software you are using.

3. Can the name of a function be changed?

Yes, the name of a function can be changed, but this may affect how it is used and may cause errors in the code if not done properly.

4. Are there different types of function names?

Yes, there are different types of function names, such as built-in functions, user-defined functions, and anonymous functions.

5. What is the purpose of a function name?

The purpose of a function name is to provide a unique identifier for a specific set of instructions or actions that can be called and executed whenever needed.

Similar threads

  • Linear and Abstract Algebra
Replies
15
Views
4K
  • Linear and Abstract Algebra
Replies
3
Views
1K
  • Linear and Abstract Algebra
Replies
13
Views
1K
  • Linear and Abstract Algebra
Replies
11
Views
1K
  • Linear and Abstract Algebra
Replies
2
Views
905
  • Linear and Abstract Algebra
Replies
8
Views
784
  • Linear and Abstract Algebra
Replies
2
Views
789
  • Linear and Abstract Algebra
Replies
2
Views
956
  • Linear and Abstract Algebra
Replies
8
Views
1K
  • Linear and Abstract Algebra
Replies
1
Views
622
Back
Top