返回题库

HMMT 二月 2025 · 团队赛 · 第 9 题

HMMT February 2025 — Team Round — Problem 9

专题
Contest Math / 竞赛数学
难度
L3
来源
HMMT

题目详情

英文原题

  1. [60] Let Z be the set of integers. Determine, with proof, all primes p for which there exists a functionf : Z → Z such that for any integer x ,
    • f ( x + p ) = f ( x ) and
    • p divides f ( x + f ( x )) − x .
    2 2 2
解析

英文解析

  1. [60] Let Z be the set of integers. Determine, with proof, all primes p for which there exists a functionf : Z → Z such that for any integer x ,
    • f ( x + p ) = f ( x ) and
    • p divides f ( x + f ( x )) − x .
    Proposed by: Marin Hristov Hristov
    Answer: p = 5 and all primes p ≡ ± 1 (mod 5)
    Solution: We work in F , treating f as a map from F to itself. Clearly, p = 2 doesn’t work. Forp pp > 2 such that 5 is a quadratic residue mod p , as well as p = 5 itself, there exists some α such that
    (2 α + 1) ≡ 5 (mod p ). Taking f ( x ) = αx then works because 2
    2 21
    f ( x + f ( x )) − x = ( α + α − 1) x = (2 α + 1) − 5 x ≡ 0 (mod p ) .
    To prove no other primes satisfy the conditions in the problem statement, note that f is surjective, as 4
    for any x , f ( x + f ( x )) = x . As F is finite, f is bijective. Plugging in x = f ( y ) yieldspf ( f ( y ) + f ( f ( y ))) = f ( y ) = ⇒ f ( y ) + f ( f ( y )) = y.
    Since f is bijective, there exists z ∈ F such that f ( z ) = 0, then z = f ( z + f ( z )) = f ( z ) = 0. Therefore,
    f (0) = 0. This is the only fixed point, as any fixed point d would satisfy d = f ( d ) + f ( f ( d )) = 2 d ,pwhich is impossible if d ̸ = 0. Hence the remaining residues form nontrivial cycles y , f ( y ), f ( f ( y )), etc.
    If the cycle containing y is of length n , then − 1
    f ( y ) = y + f ( y ) ,
    − 2 − 1
    f ( y ) = f ( y ) + y = 2 y + f ( y ) ,
    .
    .
    .
    − ( n − 1)
    f ( y ) = f ( y ) = F y + F f ( y ) , (by induction)
    n n − 1
    y = F y + F f ( y ) ,
    n +1 nwhere F is the k -th Fibonacci number. As y ̸ = 0 and f ( y ) ̸ = 0, the last two equations tell us
    (1 − F ) f ( y ) (1 − F ) ykn − 1 n +1
    F ≡ ≡ ( F − 1)( F − 1) (mod p ) .2
    n +1 n − 1
    y f ( y )n
    Let A = F − 1 and B = F − 1 for brevity. The last equation becomesn +1 n − 1
    2 2 2 2 21
    ( A − B ) ≡ AB ≡ (( A + B ) − ( A − B ) ) (mod p ) = ⇒ ( A + B ) ≡ 5( A − B ) (mod p ) .
    As 5 is not a quadratic residue, this implies F ≡ F ≡ 1 (mod p ). Hence, if d is the smallest 4
    n +1 n − 1
    positive integer such that F ≡ 0 (mod p ) and F ≡ 1 (mod p ), then the Fibonacci sequence isd d +1
    periodic modulo p with period d , so d | n . The sum of all cycle lengths (excluding the fixed point 0) isp − 1, so d | p − 1. The following well-known lemma will give us a contradiction.
    Lemma 1. If 5 is not a quadratic residue modulo a prime p , then p ∤ F .
    p − 1
    Proof 1. Recall Binet’s formula,
     
    ! !
    √ p − 1 √ p − 1
    1 1 + 5 1 − 5
     
    √
    F = − .
    p − 1
    2 2
    p − 15
    Multiplying both sides by 2 and expanding via the binomial theorem, we havep − 3
    X2
    p − 1
    p − 1 k
    2 F = 2 5 .
    p − 1
    2 k + 1
    k =0
    p − 1
    2 k +1
    However, ≡ ( − 1) ≡ − 1 (mod p ) for all k , so
    2 k +1
    p − 3
    p − 1
    X2
    5 − 12
    p | F if and only if p 5 = .kp − 1
    5 − 1
    k =0
    p − 1
    Therefore p | F if and only if 5 ≡ 1 (mod p ), which doesn’t hold if 5 is not a quadratic residue 2
    p − 1
    modulo p , as desired.
    √ √ √
    Proof 2. Work in F 2 = F [ 5]. Since 5 is not a quadratic residue, we get that ( 5) = − 5. Usingppp p ppthe fact that ( a + b ) = a + b (because all other terms have coefficient divisible by p ), we get that
    ! ! !
    √ p √ √ p − 1 √ 2 √
    1 + 5 1 − 5 1 + 5 1 − 5 3 − 5 = = ⇒ = = .
    2 2 2 2 2
    √ √
    p − 1
    1 − 5 3+ 5
    Similarly, = . Hence, by Binet’s formula,
    2 2
     
    ! !
    √ p − 1 √ p − 1
    1 1 + 5 1 − 5
     
    √
    F = −
    p − 1
    2 2
    !5
    √ √
    1 3 − 5 3 + 5 = √ − = − 1 ,
    2 2
    so it is not divisible by p .5
    Hence, F ̸ ≡ 0 (mod p ) if 5 is not a quadratic residue modulo p , which contradicts d | p − 1 above.
    p − 1
    This completes the solution.
    2 2 2