universe function said:
Well, we have n=2k-1 for an odd number and n=2k for an even number, where k is a natural number. For k=1 they give 1,2 for k=2 they give 3,4, for k=3 they give 5,6 so by continuing for all k as natural numbers we have N, which is the set of all natural numbers. Is this correct?
No. It is a handwave, not a proof. What is missing is a demonstration that {1,2} union {3,4} union {5,6} and so on is equal to the set of all natural numbers. As it is, we have a handwave rather than a proof.
A good rule of thumb is that if you want to prove something about every integer, then mathematical induction is the appropriate tool.
Side note: It is very common for someone unfamiliar with mathematics to look at the word "induction" and immediately think "oh yes, I know what that is: 'deduction' is when you use a general principle and arrive at a conclusion about a specific case. 'induction' on the other hand is when you start with a bunch of specific cases and use them to guess at a general rule. Induction can never be used for a true proof because it is not 100% reliable".
That is not what mathematical induction is. Mathematical induction is a valid tool for deductive reasoning. It is 100% reliable.
An argument by mathematical induction takes a standard form:
1. Show that a particular property holds for the first natural number.
2. Show that whenever that property holds for a natural number n, it necessarily holds for n+1.
3. Conclude that the property holds for all natural numbers.
An inductive proof for the case at hand is simple. The property we will use is "is either odd or even". We will use your definition for odd: "Is equal to 2k-1 for some natural number k" and even: "Is equal to 2k for some natural number k"
1. The first natural number is either odd or even.
Proof: 1 is the first natural number. For natural number k=1, 1=2k-1
2. If n is a natural number that is either odd or even, n+1 is also either odd or even.
Proof:
Case 1: If n is odd then it is equal to 2k-1 for some natural number k. It follows that n+1 is equal to (2k-1)+1 = 2k. So n+1 is even.
Case 2: If n is even then it is equal to 2k-1 for some natural number k. It follows that n+1 is equal to 2k+1 = 2(k+1)-2. Since k+1 is a natural number, n+1 is odd.
3. By mathematical induction, we conclude that every natural number is either even or odd.
I leave it as an exercise for the interested reader (if any) to prove that no natural number is both even and odd.