What is the Relevance of Parentheses Placement in a Sum?

  • Thread starter jgens
  • Start date
  • Tags
    Sum
In summary: I am not studying Maths.Regards.In summary, the problem of generalized associativity can be solved by course-of-values induction. The proof involves showing that for any given sum, the placement of parentheses is irrelevant. This is done by first proving the base case of three numbers, and then using induction to show that the property holds for any number of numbers. The proof is completed by showing that for any given sum, the result will always be the same, regardless of which + is applied last. This is done by using the well-ordering principle and showing that the parentheses can be rearranged to show equality.
  • #1
jgens
Gold Member
1,593
50

Homework Statement



Prove that the placement of the parentheses in any given sum is irrelevant.

Homework Equations



[tex]a + (b + c) = (a + b) + c[/tex]

[tex]a_1 + \dots + a_n = a_1 + (a_2 + \dots (a_{n-1} + a_n) \dots )[/tex]

The Attempt at a Solution



My book suggests that I split this problem up into three segments and I've followed that advice. I would appreciate it if someone could give me feedback on whatever of the following is correct and what is not correct. Thanks!

1. We first prove that

[tex](a_1 + \dots a_{n-1}) + a_n = a_1 + \dots a_n[/tex]​

by induction on [itex]n[/itex]. Clearly eqaulity holds when [itex]n = 1[/itex], [itex]n = 2[/itex], and [itex]n = 3[/itex] (by the associative property). Now assume that this equality holds for the sum of [itex]k[/itex] numbers; if it also holds for [itex]k+1[/itex] numbers, then equality always holds. Consider,

[tex](a_1 + \dots + a_k) + a_{k+1}[/tex]​

Using the associative property, this expression can be rewritten into the form

[tex](a_1 + \dots + a_k) + a_{k+1} = a_1 + [(a_2 + \dots a_k) + a_{k+1}][/tex]​

Since this latter expression contains exactly [itex]k[/itex] numbers (in which case, equality holds) this sum can once again be rewritten as

[tex](a_1 + \dots + a_k) + a_{k+1} = a_1 + (a_2 + \dots a_k + a_{k+1}) = a_1 + a_{k+1}[/tex]​

as desired.


2. Next, we prove that if [itex]n \geq k[/itex], then

[tex](a_1 + \dots a_k) + (a_{k+1} + \dots + a_n) = a_1 + \dots a_n[/tex]​

by induction on [itex]k[/itex]. Clearly, equality holds when [itex]k = 1[/itex] since the expression on the left is immediately identical to the one on the right. Now suppose that equality holds for some arbitrary [itex]k[/itex]; if this implies that it also holds for [itex]k+1[/itex], then it equality always holds. So consider,

[tex](a_1 + \dots + a_{k+1}) + (a_{k+2} + \dots + a_n)[/tex]​

By part 1 we know that

[tex]a_1 + \dots + a_{k+1} = (a_1 + \dots + a_k) + a_{k+1}[/tex]​

In which case, we have the equality

[tex](a_1 + \dots + a_{k+1}) + (a_{k+2} + \dots + a_n) = [(a_1 + \dots a_k) + a_{k+1}] + (a_{k+2} + \dots + a_n)[/tex]​

Using the associative property to rewrite this, we see that

[tex](a_1 + \dots + a_{k+1}) + (a_{k+2} + \dots + a_n) = (a_1 + \dots a_k) + [a_{k+1} + (a_{k+2} + \dots + a_n)] = a_1 + \dots + a_n[/tex]​

By the assumption in our inductive step. This completes this part of the proof.


3. To complete the proof, suppose that [itex]s(a_1, \dots, a_n)[/itex] is some sum formed from [itex]a_1, \dots, a_n[/itex]. Then we need only show that

[tex]s(a_1, \dots, a_n) = a_1 + \dots a_n[/tex]​

I figured that it might be possible to do this by utilizing the fact every sum can be split up such that [itex]s(a_1, \dots, a_n) = s'(a_1, \dots, a_k) + s''(a_{k+1}, \dots, a_n)[/itex]. If one were to continue to split each sum up, then one would invariably end up with a number of sums of the form [itex]a_l + \dots a_k[/itex]. Using part 2, the sum of these sums could then be shown to be equal to [itex]a_1 + \dots + a_n[/itex].

This was only my initial thought and the reasoning seems a bit shaky so I would appreciate any advice on how to complete this part of the proof. I would also appreciate corrections on parts 1 and 2 of the proof. Thanks!

Edit: I'm sorry if this is in the wrong section. It's a problem from my calculus book and it seems a bit more advanced than many pre-calculus problems so I figured that this would be the correct sub-forum.
 
Physics news on Phys.org
  • #2
I have this problem in my Discrete Mathematics textbook noted as "C Exercise" which is of course not easy at all.

The problem of generalized associativity should be solved by course-of-values induction.

Here how it goes:

Let p(n) be "[tex]a_1+a_2+...+a_n[/tex] has the same value no matter how it is evaluated."

Basis: [tex]a_1+a_2+a_3[/tex] may be evaluated only two ways. Since + is associative [tex](a_1+a_2)+a_3=a_1+(a_2+a_3)[/tex]. Hence p(3) is true.

Induction: Assume that for some [tex]n \geq 3[/tex] p(3), p(4), ... ,p(n) are all true. Now consider [tex]a_1+a_2+...+a_{n+1}[/tex]. Any one of the n +'s in this expression can be applied last. If the jth + is applied last, we have [tex]c_j=(a_1+a_2+...+a_j)+(a_{j+1}+...+a_{n+1})[/tex]. No matter how the expression to the left and right of the jth + are evaluated, the result will always be the same, by p(j) and p(n+1-j).

Now all that must be proven is that [tex]c_1=c_2=...=c_n[/tex].

Part of this proof is taken from the book Applied Discrete Structures for Computer Science by Alan Doerr and Kenneth Levasseur page 79/task 11.

Regards.
 
  • #3
Thanks for your feedback! I think that my textbook suggests the approach that it does because strong induction hasn't yet been introduced. I would still like feedback on the work that I've done so far along with how I might finish the proof using my calculus text's method.

To prove that [itex]c_1 = c_2 = \dots = c_n[/itex] I could use the well-ordering principle to argue that there must be a least pair of consecutive integers [itex]l,m[/itex] such that [itex]c_l \neq c_m[/itex]. It's a trivial exercise to then show that the parentheses can be rearranged in each of these sums to show that the sums would then be equal. This contradiction shows that our initial assumption that there were consecutive integers [itex]l,m[/itex] such that [itex]c_l \neq c_m[/itex] was incorrect, and thus [itex]c_1 = \dots = c_n[/itex]. Is this correct?
 
  • #4
It's a trivial exercise to then show that the parentheses can be rearranged in each of these sums to show that the sums would then be equal.

It's OK, but I'll rather use direct proof and show algebraically the 'thing' in the quote.

Let me write out the final steps:
If i<j,
[tex]
c_i=(a_1+a_2+...+a_i)+((a_{i+1}+...+a_j)+(a_{j+1}+...+a_{n+1}))=
[/tex]
[tex]=((a_1+...+a_i)+(a_{i+1}+...+a_j))+(a_{j+1}+...+a_{n+1})=[/tex], by p(3)
[tex]=c_j[/tex]

Now, good luck with your mathematical challenges, I see that you are very interested in Maths and also nice mathematician.

Sorry, but I can't give you feedback on your work, because I am not experienced mathematician. I am just another student of Computer Science who is interested in Maths, but I am not good at the math. induction field. The approach with course-of-values induction is much easier to understand and solve then 'classical' induction in which you need to prove p(k) implies p(k+1). I will leave the comments to the experts.

P.S You got the same idea with
[tex]
s(a_1, \dots, a_n) = a_1 + \dots a_n
[/tex]Regards.
 
Last edited:
  • #5
Well thank you very much njama. I really do like the way that you solved the problem much better. Hopefully someone can comment on the validity of my earlier work though.
 
  • #6
jgens said:
Well thank you very much njama. I really do like the way that you solved the problem much better. Hopefully someone can comment on the validity of my earlier work though.
No problem. Just to mention the idea of this proof is taken from the book of Alan Doerr and Kenneth Levasseur it's not mine.

Regards.
 
  • #7
Anyone have feedback?
 

What is the order of parentheses in a sum?

The order of parentheses in a sum refers to the specific way in which parentheses are placed around numbers and operators in a mathematical expression. This order affects the way the expression is evaluated and can change the result of the calculation.

Why is the order of parentheses important in a sum?

The order of parentheses is important because it dictates the order in which operations are performed in a mathematical expression. Without the correct placement of parentheses, the result of the calculation may be incorrect.

What happens if the order of parentheses is incorrect in a sum?

If the order of parentheses is incorrect in a sum, the result of the calculation will likely be incorrect. This is because the incorrect placement of parentheses can change the order in which operations are performed, resulting in a different final answer.

How do I know the correct order of parentheses in a sum?

The correct order of parentheses in a sum follows the mathematical rule of "PEMDAS" (Parentheses, Exponents, Multiplication and Division, Addition and Subtraction). This means that parentheses should be evaluated first, followed by exponents, then multiplication and division (from left to right), and finally addition and subtraction (from left to right).

Can the order of parentheses be changed in a sum?

Yes, the order of parentheses can be changed in a sum as long as it follows the "PEMDAS" rule. This means that parentheses can be added, removed, or rearranged in a mathematical expression as long as the order of operations remains the same.

Similar threads

  • Calculus and Beyond Homework Help
Replies
5
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
840
  • Calculus and Beyond Homework Help
Replies
11
Views
1K
  • Calculus and Beyond Homework Help
Replies
11
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
994
  • Math Proof Training and Practice
Replies
6
Views
1K
  • Linear and Abstract Algebra
Replies
10
Views
2K
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
13
Views
2K
Back
Top