Can I Find a Series of Numbers That Add Up to kn?

In summary: What is the problem?In summary, the conversation discusses finding a series of numbers that will add up to a multiple of the last number, n, with the least sum possible. The numbers must increase up to n and their sum must be of order 1. The conversation also addresses the need for more specific information, such as any restrictions on the numbers and parameters, and whether k can be any integer, rational, or real number. The problem is related to an algorithm and the desired solution is to find a series of numbers that will solve the problem in O(n) time.
  • #1
Nickclark
12
0
i need to find a series of numbers up to n that will add up to kn
x1 + x2 + x3+ ... + n = kn
where k is a constant.

this is part of a long complex problem once this sum is found it will finally be solved.
 
Mathematics news on Phys.org
  • #2
x1 + x2 + x3+ ... + n = kn
Do you mean ##x_1+x_2+x_3+\cdots +x_{n-1}+x_n = nk##?
How about ##x_1=x_2=\cdots =x_{n-1}=x_n = k##?
 
  • #3
no, i need the last number to be n.
some how i need to find a set of numbers when added together all i get is a multiple of the last number.
 
  • #4
Nickclark said:
no, i need the last number to be n.
some how i need to find a set of numbers when added together all i get is a multiple of the last number.

Do you have any restrictions on that set of numbers or the parameters? e.g., how many terms can you have in the sum? Is k any real number, or is it limited to certain values or sets (like the integers or rationals, etc)?
 
  • #5
Nickclark said:
no, i need the last number to be n.
some how i need to find a set of numbers when added together all i get is a multiple of the last number.
From what you've said, k can be any integer, and there can be any number of terms in the sum ... so you appear to be saying you want to find any set of numbers ##\{x_i\}## so that $$n+\sum_{i=1}^m x_i = kn$$ (the last number is n as specified) .. which suggests that $$(k-1)n=\sum_{i=1}^m x_i$$ and again I can say that ##x_1 = x_2 = \cdots =x_{m-1}=x_m = \frac{n}{m}(k-1)##

... which means that you have to be more specific about your problem if you are to get sensible answers. I'm guessing the x's can't be just any old numbers for example, and k is not supposed to be a specific integer? But I'm guessing - don't make people guess.
 
  • #6
yeah, i should've added more restrictions.
well the numbers must increase as we go on, for example:
1+2+3+...+n=n(n+1)/2 right, but this is of second order
i want to add numbers that increase up to n, and their sum is of order 1.
 
  • #7
Nickclark said:
yeah, i should've added more restrictions.
well the numbers must increase as we go on, for example:
1+2+3+...+n=n(n+1)/2 right, but this is of second order
i want to add numbers that increase up to n, and their sum is of order 1.

You still need to be a bit more specific. You still haven't told us if k has to be an integer or rational or real or positive or negative, etc. It's also not clear how many terms you have in your sum - it looks like it's n terms where the last term is also equal to n, but you haven't told us that explicitly - we're still just guessing. Please tell us precisely what you want.
 
  • #8
If this is a problem that has been supplied to you, then please provide the exact text of the problem and the context.

I'll add that we don't know that the numbers have to be integers of if they can be real, and so on. eg.

##\sum_{i=1}^n = n(n+1)/2 = kn \text{ if } k=(n+1)/2##
But what do you mean "the sum is of order 1"?
You mean that kn cannot be quadratic in n? (k cannot depend on n?)

Maybe you are thinking more like:
x1=1, x2=2, x3=3=n, then 1+2+3=6=2n so k=2
that the idea?
 
  • #9
Well the problem is not about this sum, if you find a series like the one described the problem will be solved.
i have submitted the following answer:

2+4+8+16+32+64+...+2^k = 2(1+2+4+8+...+2^(k-1) = 2(2^k -1)/2-1 = 2(2^k -1)
but 2^k = n
k = log (base 2) n right, then substitute in the sum:
2(n-1) which is linear that is (of order one).
the idea of the problem is that i want to get to n with the least sum possible, if i went with the quadratic equation that would have taken too much time O(n^2), so this sum will save so much time O(n)
it's an algorithm problem.
 
  • #10
So to get good help you will need to describe the problem properly.
 

1. What is summation of a set?

Summation of a set refers to the process of adding up all the elements in a set. It is often represented using the sigma symbol (Σ) and can be used to find the total number of items in a set.

2. How is summation of a set calculated?

The summation of a set is calculated by adding up all the elements in the set. This can be done manually by adding each element individually, or by using a formula such as Σn = n(n+1)/2 for a set of consecutive numbers.

3. What does the "k" in "kn" represent?

The "k" in "kn" represents a constant value that is used to scale the summation. This allows for the summation to be generalized for different sets and values.

4. What is the purpose of representing summation using "kn"?

Representing summation using "kn" allows for a more concise and general formula that can be applied to different sets and values. It also allows for easier manipulation and calculation of the summation.

5. How is summation of a set used in scientific research?

Summation of a set is often used in scientific research to find the total number of items or events in a set, to calculate averages or probabilities, and to model real-world phenomena. It is also used in statistical analysis and data interpretation.

Similar threads

  • General Math
Replies
5
Views
941
Replies
4
Views
386
  • General Math
Replies
1
Views
2K
Replies
3
Views
2K
Replies
7
Views
1K
  • General Math
Replies
3
Views
868
Replies
2
Views
3K
  • General Math
Replies
3
Views
901
Replies
6
Views
1K
  • General Math
Replies
3
Views
1K
Back
Top