Math induction - I think i totally missed the point of it.

  • Thread starter Thread starter Hercuflea
  • Start date Start date
  • Tags Tags
    Induction Point
Click For Summary

Homework Help Overview

The discussion revolves around using strong induction to demonstrate that every positive integer can be expressed as a sum of distinct powers of two. Participants are exploring the inductive step and the setup of the problem, particularly focusing on the cases where the integer is even or odd.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants are attempting to establish the inductive hypothesis and clarify the basis step. There are questions about the necessity of separating cases for even and odd integers, and some participants suggest alternative ways to approach the problem without focusing on parity.

Discussion Status

The discussion is active, with participants providing feedback on each other's reasoning and suggesting adjustments to the approach. Some guidance has been offered regarding the representation of integers as sums of powers of two, but there is no explicit consensus on the best method to proceed.

Contextual Notes

Some participants express difficulty with the notation and setup of the problem, indicating that the original poster may be struggling with how to formulate the problem in a clear mathematical way. There is also mention of the challenge of working with superscripts and ensuring clarity in the representation of powers of two.

Hercuflea
Messages
593
Reaction score
49

Homework Statement



"Use strong induction to show that every positive integer n can be written as a sum of distinct powers of two, that is, as a sum of a subset of the integers 2[itex]^{0}[/itex] = 1, 2[itex]^{1}[/itex] = 2, 2[itex]^{2}[/itex]= 4, and so on. [Hint: for the inductive step, separately consider the case where k+1 is even and where it is odd. When it is even, note that (k+1)/2 is an integer.]

Homework Equations



Assume P(k) and show that P(k)--->P(k+1)

The Attempt at a Solution



P(n): every integer n[itex]\geq[/itex]1 can be written as a sum of distinct powers of 2.

Basis step: clearly P(1) = 1 = 2[itex]^{0}[/itex]
1 = 1

Inductive Step: Assume for some k[itex]\in[/itex]N that k can be written as distinct powers of 2. Show that k+1 can be written as distinct powers of 2.

Case 1: k+1 is even:
Clearly if k = 2[itex]^{j}[/itex] by the inductive hypothesis, then k+1 = 2[itex]^{j}[/itex] + 2[itex]^{0}[/itex]

I don't even see why I need a case 2. Apparently I have proven this by a direct proof even though I was trying to do induction.

I just don't know how to properly set up induction word problems. I have an easier time when the conjecture is given numerically. How can I write an equation for "n can be written as the sum of powers of 2" without making a bunch of new variables, like n = 2[itex]^{j}[/itex] + 2[itex]^{m}[/itex] + 2[itex]^{p}[/itex] + ...?
 
Last edited:
Physics news on Phys.org
Hercuflea said:
Case 1: k+1 is even:
Clearly if k[itex]^{}j[/itex] = 2[itex]^{}j[/itex] by the inductive hypothesis, then k+1 = 2[itex]^{}j[/itex] + 2[itex]^{}0[/itex]

What are you doing here? That doesn't seem to make much sense...

So if you have k even, then by induction there exists a representation
[tex]k = 2^a + 2^b + 2^c + ...[/tex]
where a, b, c, ... > 0. Then the unique representation for k+1 is just
[tex]k+1 = 2^0 + k[/tex]

Then you need to work out what happens when k is odd.
 
clamtrox said:
What are you doing here? That doesn't seem to make much sense...

So if you have k even, then by induction there exists a representation
[tex]k = 2^a + 2^b + 2^c + ...[/tex]
where a, b, c, ... > 0. Then the unique representation for k+1 is just
[tex]k+1 = 2^0 + k[/tex]

Then you need to work out what happens when k is odd.

sorry, that was my first time fooling around with the superscripts. It's fixed now.
 
Hercuflea said:
sorry, that was my first time fooling around with the superscripts. It's fixed now.

Yea those were messed up but your reasoning is still a bit incomplete
 
Ok, so this is what I have so far.

Case 1: k is even

So k = 2[itex]^{a}[/itex] + 2[itex]^{b}[/itex] + 2[itex]^{c}[/itex] + ...

a, b, c, ...[itex]\geq[/itex]0

Then k + 1 = k + 2[itex]^{0}[/itex]
k + 1 = k + 1

Case 2: k is odd

So k = 2[itex]^{0}[/itex] + 2[itex]^{a}[/itex] + 2[itex]^{b}[/itex] + 2[itex]^{c}[/itex] +...

Where a, b, c, ...[itex]\geq[/itex]0

So k+1 = 2[itex]^{0}[/itex] + 2[itex]^{0}[/itex] + 2[itex]^{a}[/itex] + 2[itex]^{b}[/itex] + 2[itex]^{c}[/itex]

k + 1 = 2[itex]^{0}[/itex](1+1) + 2[itex]^{a}[/itex] + 2[itex]^{b}[/itex] + 2[itex]^{c}[/itex]

k+1 = k + 2?
 
don't worry about even or odd, instead think of it as for for k=1...n-1 we have k=[itex]\sum_{i=0}^{m}2^{f_i(k)}, f_i(x)=0,1[/itex] let [itex]n-1=\sum_{i=0}^{m}2^{f_i(n-1)}[/itex], then [itex]2*(n-1)=\sum_{i=0}^{m}2^{f_i(n-1)+1}[/itex]
from there add 2 to both sides, and divide by 2 (made possible since 2n is guaranteed even).
 
Hercuflea said:
k + 1 = 2[itex]^{0}[/itex](1+1) + 2[itex]^{a}[/itex] + 2[itex]^{b}[/itex] + 2[itex]^{c}[/itex]

k+1 = k + 2?
No, you want to show that you can write k+1 = 2^a + 2^b + 2^c + ..., not that k+1=k+1 (that is obvious)


tt2348 said:
don't worry about even or odd, instead think of it as for for k=1...n-1 we have k=[itex]\sum_{i=0}^{m}2^{f_i(k)}, f_i(x)=0,1[/itex] let [itex]n-1=\sum_{i=0}^{m}2^{f_i(n-1)}[/itex], then [itex]2*(n-1)=\sum_{i=0}^{m}2^{f_i(n-1)+1}[/itex]
from there add 2 to both sides, and divide by 2 (made possible since 2n is guaranteed even).
That's a very cute way of doing it
 

Similar threads

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