Question #71820

Prove that for any integer n such that n≡2 mod 3 , n^k≡1 or 2 (mod 3) , where k∈N

Expert's answer

Answer on Question #71820 – Math – Discrete Mathematics

Question

Prove that for any integer nn such that n2mod3n \equiv 2 \mod 3, nk1n^k \equiv 1 or 2 (mod 3), where kNk \in \mathbb{N}

Solution

From n2mod3n \equiv 2 \mod 3 we can write nn as n=3t+2n = 3t + 2, where tt is integer number.

Consider


nk=(3t+2)k.n^k = (3t + 2)^k.


Using formula


(a+b)k=i=0k(ki)akibi,(a + b)^k = \sum_{i=0}^{k} \binom{k}{i} a^{k-i} b^i,(3t+2)k=(k0)(3t)k+(k1)(3t)k121++(kk1)(3t)12k1+(kk)2k.(3t + 2)^k = \binom{k}{0} (3t)^k + \binom{k}{1} (3t)^{k-1} 2^1 + \cdots + \binom{k}{k-1} (3t)^1 2^{k-1} + \binom{k}{k} 2^k.


Obviously,


((k0)(3t)k+(k1)(3t)k121++(kk1)(3t)12k1)0mod3\left( \binom{k}{0} (3t)^k + \binom{k}{1} (3t)^{k-1} 2^1 + \cdots + \binom{k}{k-1} (3t)^1 2^{k-1} \right) \equiv 0 \mod 3


because each term of the sum has a multiplier of 3.

Therefore,


nk(3t+2)k2kmod3.n^k \equiv (3t + 2)^k \equiv 2^k \mod 3.


Using the principle of mathematical induction verify statement


2k1mod3 or 2k2mod3 for kN.2^k \equiv 1 \mod 3 \text{ or } 2^k \equiv 2 \mod 3 \text{ for } k \in \mathbb{N}.


For k=1k = 1 and k=2k = 2 statement is true:


212mod3,2241mod3.2^1 \equiv 2 \mod 3, \quad 2^2 \equiv 4 \equiv 1 \mod 3.


Let the statement be true for k=lk = l:


2l1mod3 or 2l2mod3.2^l \equiv 1 \mod 3 \text{ or } 2^l \equiv 2 \mod 3.


Consider k=l+1k = l + 1.

If 2l1mod32^l \equiv 1 \mod 3 then 2l+122l212mod32^{l+1} \equiv 2 \cdot 2^l \equiv 2 \cdot 1 \equiv 2 \mod 3.

If 2l2mod32^l \equiv 2 \mod 3 then 2l+122l2241mod32^{l+1} \equiv 2 \cdot 2^l \equiv 2 \cdot 2 \equiv 4 \equiv 1 \mod 3.

Hence the statement 2l+12mod32^{l+1} \equiv 2 \mod 3 or 2l+11mod32^{l+1} \equiv 1 \mod 3 is true.

According to the principle of mathematical induction the statement is true for kNk \in \mathbb{N}.

As a result, one gets nk2k1mod3n^k \equiv 2^k \equiv 1 \mod 3 or nk2k2mod3n^k \equiv 2^k \equiv 2 \mod 3.

Answer provided by https://www.AssignmentExpert.com

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS