Skip to main content

AMC 12 Mock Exam 3 Problem 22

Problem 22 of 25

What is the smallest positive integer nn such that 3n−13^n-1 is divisible by 7⋅2207\cdot2^{20}?

Answer choices

Show solution

Solution

Power of 22. If nn is odd, 3n≡3(mod4)3^n\equiv3\pmod4, so 3n−13^n-1 is divisible by 22 only once. If n=2kmn=2^km with mm odd and k≥1k\ge1, 3n−1=(3m−1)(3m+1)(32m+1)(34m+1)⋯(32k−1m+1).3^n-1=(3^m-1)(3^m+1)(3^{2m}+1)(3^{4m}+1)\cdots(3^{2^{k-1}m}+1). Here 3m−13^m-1 contributes one factor of 22; 3m≡3(mod8)3^m\equiv3\pmod8 so 3m+13^m+1 contributes exactly two; and each 32jm+1≡2(mod4)3^{2^jm}+1\equiv2\pmod4 (j≥1j\ge1) contributes one. So 3n−13^n-1 is divisible by exactly 2k+22^{k+2}, and we need k+2≥20k+2\ge20, i.e., 218∣n2^{18}\mid n.

Factor 77. The powers of 33 modulo 77 are 3,2,6,4,5,13,2,6,4,5,1, so 7∣3n−17\mid3^n-1 iff 6∣n6\mid n.

Both conditions hold iff lcm⁡(218,6)=3⋅218\operatorname{lcm}(2^{18},6)=3\cdot2^{18} divides nn, so the answer is 3⋅218\boxed{3\cdot2^{18}}.

Tagged: power of 2 dividing $3^n-1$, and multiplicative order