返回题库

HMMT 二月 2026 · 冲刺赛 · 第 29 题

HMMT February 2026 — Guts Round — Problem 29

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

题目详情

英文原题

  1. [16] Compute
    ( )
    4004
    ∑
    gcd( k, 4004) cos .πk
    2002
    k =1
解析

英文解析

  1. [16] Compute
    ( )
    4004
    ∑
    gcd( k, 4004) cos .πk
    2002
    k =1
    Proposed by: Jacopo Rizzo
    Answer: 1440
    ©2026 HMMT
    Solution 1: More generally, we claim that
    ( )
    ∑n
    2 πkgcd( k, n ) cos = φ ( n )
    k =1 nfrom which plugging in n = 4004 gives 1440 .
    To prove the claim, we first note that the sum is the real part ofn
    ∑
    gcd( k, n ) ζ ,kk =0
    ∑
    2 πi/nwhere ζ = e is the n -th root of unity. To evaluate this, we use φ ( d ) = n to get thatd | nn n
    ∑ ∑ ∑
    k kgcd( k, n ) ζ = φ ( d ) ζk =1 k =1
    d | gcd( k,n )
    ∑ ∑nk = φ ( d ) ζk =1
    d | k and d | nn
    ∑ ∑ddt = φ ( d ) ζ .
    t =1
    d | n
    If d = n , then the inner sum is 1 . Otherwise, by geometric series, the inner sum isd · n/dζ ( ζ − 1) = 0 .
    ζ − 1 d
    ∑
    This establishes that gcd( k, n ) ζ = φ ( n ) .knk =1
    2 πi/n k − k
    Solution 2: Let n = 4004 and ζ = e , so that 2 cos( πk/ 2002) = ζ + ζ .
    2 πi/n
    Claim 1. If ω = e , then
    ∑
    g ( n ) := ω = μ ( n ) .kgcd( k,n )=1 , 0 ≤ k<n
    Proof. The functionn
    ∑
    2 πik/nf ( n ) = ek =0
    is 0 when n > 1 , and 1 when n = 1 . On the other hand, by considering gcd( k, n ) (e.g. primitive d throots of unity for d | n ) we see
    ∑
    f ( n ) = g ( d ) .
    d | n
    But this readily implies g ( n ) = μ ( n ) by mobius inversion, as desired.
    ©2026 HMMT
    We can now calculate:
    ( ) ( )
    n n nk − k k − k
    ∑ ∑ ∑
    ζ + ζ ζ ζgcd( k, n ) = gcd( k, n ) + gcd( k, n )
    2 2 2
    k =1 k =1 k =1
    ( ) ( )
    ′
    n nk n − k
    ∑ ∑
    ζ ζ
    ′
    = gcd( k, n ) + gcd( n − k , n − 1)
    2 2
    ′
    k =1 k =0
    ∑nk = gcd( k, n ) ζk =1
    ∑ ∑
    = d ζkd | n gcd( k,n )= d
    ∑ ∑
    d j = d ( ζ )
    d | n gcd( j,n/d )=1
    ∑
    = dμ ( n/d )
    d | n = φ ( n ) .
    Plugging in n = 4004 gives φ (4004) = 1440 .