DR.WANG Mathematics中文

2023 AIME II · Question 15

Number theory · modular arithmetic · number base · multiplicative order · arithmetic

Problem outline

For n≥1n\ge1, let ana_n be the smallest positive multiple of 2323 which is 11 modulo 2n2^n. Count the indices 1≤n≤10001\le n\le1000 for which an=an+1a_n=a_{n+1}.

Show answer and methods 1 methods

Answer

363

Method 1 Halve the least residue in an eleven-step cycle

Write an=1+2ntna_n=1+2^n t_n, where tnt_n is the unique representative in 1,…,221,\ldots,22 satisfying 2ntn≡−1(mod23)2^n t_n\equiv-1\pmod{23}. Minimality follows because other positive representatives are larger by multiples of 2323.

The congruences imply 2tn+1≡tn(mod23)2t_{n+1}\equiv t_n\pmod{23}. Thus tn+1=tn/2t_{n+1}=t_n/2 for even tnt_n, and tn+1=(tn+23)/2t_{n+1}=(t_n+23)/2 for odd tnt_n. Equality an=an+1a_n=a_{n+1} holds exactly in the even case.

From t1=11t_1=11 the list is 11,17,20,10,5,14,7,15,19,21,2211,17,20,10,5,14,7,15,19,21,22, followed by 1111 again. Positions 3,4,6,113,4,6,11 work in every block. There are 9090 complete blocks and ten extra positions, giving 90⋅4+3=36390\cdot4+3=363.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)