View Single Post
Old 10-15-2008, 01:08 PM   #4 (permalink)
Rekna
Junkie
 
Quote:
Originally Posted by Jozrael View Post
How do I prove that 2^n + 3^n - 5^n is always divisible by 6?
Ok here you go:

assume that 2^n + 3 ^n - 5^n is divisible by 6

base case: 2^2+3^2-5^2=-12

inductive step:

2^(n+1)+3^(n+1)-5^(n+1)
=2*2^n+ 3*3^n -5*5^n
=2^n+2^n+3^n+3^n+3^n-5^n-5^n-5^n-5^n-5^n
= (2^n+3^n+5^n)+(2^n+3^n+5^n) + (3^n -3*5^n)

The first 2 terms are both divisible by 6 (from our assumption) but is the 3rd?

We can try induction on that one to prove it

assume 3^n -3*5^n is divisible by 6

base case: 3^2 - 3*5^2 = -66

inductive step

3^(n+1) - 3*5^(n+1)
=3*3^n - 3*5*5^n
=3^n+3^n+3^n-3*(5^n+5^n+5^n+5^n+5^n)
=(3^n-3*5^n)+(3^n-3*5^n)+(3^n-3*5^n)-3*2(5^n)
=(3^n-3*5^n)+(3^n-3*5^n)+(3^n-3*5^n)-6(5^n)

The first 3 terms are divisible by 6 from the assumption and the 4th term is divisible by 6 because it is multiplied by 6. Thus 3^n -3*5^n is divisible by 6 and as a result 2^n + 3 ^n - 5^n is divisible by 6.

QED.

Please check my work.
Rekna is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76