How do I prove the statement p(n)= n >(or equal to) 0 using induction?

  • Thread starter Thread starter Jtechguy21
  • Start date Start date
  • Tags Tags
    Induction Proof
Click For Summary
SUMMARY

This discussion focuses on proving the statement p(n) = n ≥ 0 using mathematical induction for the function Distance(x,y) defined for binary strings. The proof involves establishing a base case (P(1)) and demonstrating that if p(k) holds, then p(k+1) must also hold. The Distance function is defined as Distance(x,y) = ∑|x_i - y_i|, which guarantees non-negative values, thus confirming that p(n) is true for all natural numbers n.

PREREQUISITES
  • Understanding of mathematical induction principles
  • Familiarity with binary strings and their properties
  • Knowledge of the exclusive or (XOR) operator
  • Basic concepts of discrete mathematics
NEXT STEPS
  • Study the principles of mathematical induction in depth
  • Learn about the properties and applications of the XOR operator
  • Explore the concept of distance metrics in discrete mathematics
  • Practice additional induction problems to solidify understanding
USEFUL FOR

Students in discrete mathematics, particularly those learning about mathematical induction and distance functions in binary contexts.

Jtechguy21
Messages
51
Reaction score
0

Homework Statement



induction_zpse3cae906.jpg


a)Prove, by induction on n, that for all n ∈ N(natural numbers), Distance(x,y)<or equal to 0b)Prove, by induction on n, that for all n ∈ N(natural numbers), Distance(x,y)<or equal to n

Homework Equations


proof by induction:

Base case P(1)

then assume p(k) is true
then prove p(k+1) is also true by induction.

The Attempt at a Solution



Alright so I have been practicing induction problems in my discrete mathematics class,
however I am not quite sure where to start.
I just need some guidance to starting the problem. (the algorithm throws me off, I am new to coding)
I do understand the concept of induction.

Specifically...

In part a, What exactly is the statement that I am proving by induction?
p(n)= n >(or equal to) 0 is this correct?
 
Physics news on Phys.org
Jtechguy21 said:

Homework Statement



induction_zpse3cae906.jpg


a)Prove, by induction on n, that for all n ∈ N(natural numbers), Distance(x,y)<or equal to 0b)Prove, by induction on n, that for all n ∈ N(natural numbers), Distance(x,y)<or equal to n

Homework Equations


proof by induction:

Base case P(1)

then assume p(k) is true
then prove p(k+1) is also true by induction.

The Attempt at a Solution



Alright so I have been practicing induction problems in my discrete mathematics class,
however I am not quite sure where to start.
I just need some guidance to starting the problem. (the algorithm throws me off, I am new to coding)
I do understand the concept of induction.

Specifically...

In part a, What exactly is the statement that I am proving by induction?
p(n)= n >(or equal to) 0 is this correct?

In part (a), you're meant to show that this function, ##\mathrm{Distance}(x,y)##, assigns a non-negative value to a pair of binary strings. In order to do that, you need to first understand the function. And in order to do that, you got to figure out what the algorithm is doing.

The first tricky bit is understanding the meaning of the ##\oplus## operator. Your book tells you that this is meant to represent "exclusive or" but that's not really all that helpful. Basically, given ##a,b\in\{0,1\}##, ##a\oplus b=0## if ##a=b## and ##a\oplus b=1## if ##a\neq b##. Or to put it another way, ##a\oplus b=|a-b|##. Or to put it yet another way - a way that gets at the heart of the "exclusive or" business - ##a\oplus b=1## if and only if either ##a=1## or ##b=1##, but not both.

Now given that, if I tell you that ##\mathrm{Distance}(x,y)=\sum\limits_{i=1}^n|x_i-y_i|##, can you figure out how the algorithm works? Note that this formula make the problem trivial, and completely doable without induction. So I give it only so that you may understand the algorithm.

Also the ##p(n)## statement for part (a) would look something like, "If ##x## and ##y## are binary strings of length ##n##, then ##\mathrm{Distance}(x,y)\geq 0##."
 
The main idea is that you can prove the infinitely many statements p(1), p(2), p(3),... by proving only the following two statements:

p(1)
For all integers n such that n≥1, if p(n) then p(n+1).
For each integer n such that n≥1, the statement p(n) is...actually I see now that gopher_p has already told you what it is, so you can just look at the last line of his post.
 

Similar threads

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