Teaching Kids Programming – Introduction to Math Induction


Teaching Kids Programming: Videos on Data Structures and Algorithms

Math Induction is a powerful tool that allows us to prove the correctness of a formula (Proposition). To do this, we need to follow two steps:

First, prove the formula is correct for the initial case (base case).

Second (and Last), assume the general case n, then prove that formula also stands for case n + 1.

Math Induction to Prove Sum of First N Natural Numbers

For example, we propose the formula to compute the sum of the first N natural numbers is (n+1)*n/2.

First Step: base case, when N = 1, the sum is obviously 1, so is the Proposition (1+1)*1/2.

Induction Step: Assume When N=K, thus the Sum is (K+1)*K/2. Then for K+1 cases, apparently the F(K+1)=F(K)+K+1 Thus

tex_aed1c96d318f4aefe0ce92763201bc61 Teaching Kids Programming - Introduction to Math Induction math

That is: tex_598a3de064fdfb6e85cd8f05d3fd92d6 Teaching Kids Programming - Introduction to Math Induction math as tex_d377c23be74563089c734252013ce919 Teaching Kids Programming - Introduction to Math Induction math

Therefore we can conclude that the Proposition n(n+1)/2 is the sum for the first N natural numbers.

Math Induction to Prove the Sum of Squares Formula

Proposition: Sum of 1^2 + 2^2 + 3^2 + … n^2 = tex_dd04f5d536f653cfdb35d154df9f7798 Teaching Kids Programming - Introduction to Math Induction math

Base case: when N is 1: the sum is 1*(1+1)*(2*1+1)/6 which is 1.

Induction Step: given K=N, then the sum for K+1 is tex_42198fa268b6fdba76e24e3856ee048f Teaching Kids Programming - Introduction to Math Induction math

Expanded:
tex_9d76b06460d5537d9fd0c0c7d9e67ca2 Teaching Kids Programming - Introduction to Math Induction math
tex_fd8991e038cde108618a8f0183ad46b1 Teaching Kids Programming - Introduction to Math Induction math
tex_ed35d28ab6cfe91b4f21387f5631a8f9 Teaching Kids Programming - Introduction to Math Induction math
tex_ed35d28ab6cfe91b4f21387f5631a8f9 Teaching Kids Programming - Introduction to Math Induction math
tex_987d353d29a239309dc71d89a91dde77 Teaching Kids Programming - Introduction to Math Induction math
tex_5f9cfd004a5e2a625ed4075a95b374d1 Teaching Kids Programming - Introduction to Math Induction math
tex_2c233a21d90510bea28fb44acc2c16f7 Teaching Kids Programming - Introduction to Math Induction math
tex_3972696c8b829fcf42054e2252e3c86a Teaching Kids Programming - Introduction to Math Induction math

Thus, F(K+1) is tex_3972696c8b829fcf42054e2252e3c86a Teaching Kids Programming - Introduction to Math Induction math
we have proven the F(1), and also proved that F(K+1) based on assumption of F(K).
Thus the Proposition is correct.

Sum of First N Squares is tex_dd04f5d536f653cfdb35d154df9f7798 Teaching Kids Programming - Introduction to Math Induction math

–EOF (The Ultimate Computing & Technology Blog) —

GD Star Rating
loading...
926 words
Last Post: Find the Length of the Collatz Sequence
Next Post: Simple Vertical Cipher Algorithm

The Permanent URL is: Teaching Kids Programming – Introduction to Math Induction

Leave a Reply