0

Prove $2^k+1$ divisible by 3 iff $k$ is odd number.

Since I need to prove both direction looks like if I need to prove it's divisible by 3 it's by induction and the other side by congruence..am I right? is there a better wat than induction? and we I still can't prove both direction... any hints?

Jyrki Lahtonen
  • 133,153
Mary
  • 825
  • Try phrasing the question in terms of modular arithmetic rather than divisibility. –  Apr 03 '13 at 21:59

4 Answers4

1

HINT: Prove by induction that $2^k\equiv(-1)^k\pmod 3$.

Brian M. Scott
  • 616,228
1

Hint: $4 \equiv 1 \mod 3$, so $2^{k+2} \equiv \ldots $

Robert Israel
  • 448,999
1

If $k=2m$, then $2^k=4^m\equiv 1^m\pmod 3$ and if $k=2m+1$ then $2^k=2\cdot 4^m\equiv 2\cdot 1^m\pmod 3$.

  • so the other way is in induction as I said? – Mary Apr 04 '13 at 00:15
  • @Hagen von Eitzen can I just ask for some clarification, as I am learning this subject: I read the last part as $ 2^k \equiv 2 (mod 3) $ which by definition means $ 3|(2^k - 2)$ - so how is this the same as $ 3|(2^k + 1)$? Many Thanks. – JackReacher Aug 13 '13 at 02:18
0

Hint $\rm\ \ 1\!-\!(-2)\mid 1\!-\!(-2)^{2n+1}$

Math Gems
  • 19,574