MathDB
2015-2016 Spring OMO #25

Source:

March 29, 2016
Online Math Open

Problem Statement

Given a prime pp and positive integer kk, an integer nn with 0n<p0 \le n < p is called a (p,k)(p, k)-Hofstadterian residue if there exists an infinite sequence of integers n0,n1,n2,n_0, n_1, n_2, \ldots such that n0nn_0 \equiv n and ni+1kni(modp)n_{i + 1}^k \equiv n_i \pmod{p} for all integers i0i \ge 0. If f(p,k)f(p, k) is the number of (p,k)(p, k)-Hofstadterian residues, then compute k=12016f(2017,k)\displaystyle \sum_{k = 1}^{2016} f(2017, k).
Proposed by Ashwin Sah