Solveeit Logo

Question

Question: The sum of last three digit if the number N = $7^{100}-3^{100}$ is...

The sum of last three digit if the number N = 710031007^{100}-3^{100} is

A

0

B

1

C

3

D

4

Answer

0

Explanation

Solution

To find the sum of the last three digits of the number N=71003100N = 7^{100} - 3^{100}, we need to find the value of NN modulo 1000. The last three digits of a number are represented by its remainder when divided by 1000.

We can use the Carmichael function, λ(n)\lambda(n), which is the smallest positive integer such that aλ(n)1(modn)a^{\lambda(n)} \equiv 1 \pmod{n} for all integers aa coprime to nn.

First, find the prime factorization of 1000: 1000=103=(2×5)3=23×531000 = 10^3 = (2 \times 5)^3 = 2^3 \times 5^3.

Next, calculate λ(1000)\lambda(1000): λ(1000)=lcm(λ(23),λ(53))\lambda(1000) = \text{lcm}(\lambda(2^3), \lambda(5^3)).

For a prime pp and positive integer kk:

  • If pp is an odd prime, λ(pk)=ϕ(pk)=pkpk1\lambda(p^k) = \phi(p^k) = p^k - p^{k-1}.
  • For p=2p=2, λ(2)=1\lambda(2) = 1, λ(4)=2\lambda(4) = 2, and λ(2k)=2k2\lambda(2^k) = 2^{k-2} for k3k \ge 3.

Let's calculate the individual Carmichael values:

  1. For 232^3: λ(23)=λ(8)=232=21=2\lambda(2^3) = \lambda(8) = 2^{3-2} = 2^1 = 2.

  2. For 535^3: λ(53)=ϕ(53)=53531=12525=100\lambda(5^3) = \phi(5^3) = 5^3 - 5^{3-1} = 125 - 25 = 100.

Now, calculate λ(1000)\lambda(1000): λ(1000)=lcm(2,100)=100\lambda(1000) = \text{lcm}(2, 100) = 100.

According to Carmichael's theorem, if gcd(a,n)=1\gcd(a, n) = 1, then aλ(n)1(modn)a^{\lambda(n)} \equiv 1 \pmod{n}. In our case, n=1000n=1000 and λ(1000)=100\lambda(1000) = 100.

  1. For 7100(mod1000)7^{100} \pmod{1000}: Since gcd(7,1000)=1\gcd(7, 1000) = 1, and the exponent is 100, which is equal to λ(1000)\lambda(1000): 71001(mod1000)7^{100} \equiv 1 \pmod{1000}.

  2. For 3100(mod1000)3^{100} \pmod{1000}: Since gcd(3,1000)=1\gcd(3, 1000) = 1, and the exponent is 100, which is equal to λ(1000)\lambda(1000): 31001(mod1000)3^{100} \equiv 1 \pmod{1000}.

Now, substitute these results back into the expression for NN: N=71003100(mod1000)N = 7^{100} - 3^{100} \pmod{1000} N11(mod1000)N \equiv 1 - 1 \pmod{1000} N0(mod1000)N \equiv 0 \pmod{1000}.

This means that NN is a multiple of 1000. Any number that is a multiple of 1000 has its last three digits as 000. For example, N=000N = \dots000. The last three digits are 0, 0, and 0.

The sum of the last three digits is 0+0+0=00 + 0 + 0 = 0.