Let's solve the problem using **Fermat's Little Theorem** step-by-step to find the remainder when \( 3^{1989} \) is divided by 7.
---
### **Fermat's Little Theorem**
Fermat's Little Theorem states that if \( p \) is a prime number and \( a \) is an integer not divisible by \( p \), then:
\[
a^{p-1} \equiv 1 \pmod{p}
\]
In this problem:
- \( p = 7 \) (which is prime),
- \( a = 3 \) (which is not divisible by 7).
Thus, applying Fermat's Little Theorem:
\[
3^{6} \equiv 1 \pmod{7}
\]
This tells us that powers of 3 modulo 7 repeat every 6 exponents.
---
### **Step 1: Express the exponent in terms of the cycle length (6)**
We need to compute \( 3^{1989} \mod 7 \). First, divide 1989 by 6 to find how many full cycles fit and the remaining exponent:
\[
1989 \div 6 = 331 \text{ with a remainder of } 3
\]
So, we can write:
\[
1989 = 6 \times 331 + 3
\]
Thus:
\[
3^{1989} = 3^{6 \times 331 + 3} = \left(3^6\right)^{331} \times 3^3
\]
---
### **Step 2: Apply Fermat's Little Theorem**
From Fermat's Little Theorem, \( 3^6 \equiv 1 \pmod{7} \). Therefore:
\[
\left(3^6\right)^{331} \equiv 1^{331} \equiv 1 \pmod{7}
\]
So, the equation simplifies to:
\[
3^{1989} \equiv 1 \times 3^3 \equiv 3^3 \pmod{7}
\]
---
### **Step 3: Compute \( 3^3 \mod 7 \)**
Calculate \( 3^3 \):
\[
3^3 = 27
\]
Now, find \( 27 \mod 7 \):
\[
27 \div 7 = 3 \text{ with a remainder of } 6 \quad (\text{since } 7 \times 3 = 21, \text{ and } 27 - 21 = 6)
\]
Thus:
\[
3^3 \equiv 6 \pmod{7}
\]
---
### **Final Result**
Substituting back:
\[
3^{1989} \equiv 6 \pmod{7}
\]
Therefore, the remainder when \( 3^{1989} \) is divided by 7 is **6**.
---
### **Answer**
The correct choice is **C. 6**.