olymmath

BALKAN 2025 Problem 1

  • Paper

An integer n>1n > 1 is called good if there exists a permutation a1,a2,a3,…,ana_{1},a_{2},a_{3},\ldots ,a_{n} of the numbers 1,2,3,…,n1,2,3,\ldots ,n , such that:

  • aia_{i} and ai+1a_{i + 1} have different parities for every 1⩽i⩽n−11 \leqslant i \leqslant n - 1 ;

  • the sum a1+a2+⋯+aka_{1} + a_{2} + \dots + a_{k} is a quadratic residue modulo nn for every 1⩽k⩽n1 \leqslant k \leqslant n .

Prove that there exist infinitely many good numbers, as well as infinitely many positive integers which are not good.

Remark: Here an integer xx is considered a quadratic residue modulo nn if there exists an integer yy such that x≡y2(modn)x \equiv y^{2} \pmod {n} .

Dataset text NuminaMath olympiads. Quoted with source.

Solutions

No solution is on olymmath yet. Official and human solutions come first when they arrive. AI solutions come after them, with a label.

Add a solution

Locator balkan/2025/p1 · Tag GXP61W384V · Edit this page on GitHub · Keys: j next, k previous