olymmath

BALTIC-WAY 2020 Problem 18

  • Answer

Let n⩾1n \geqslant 1 be a positive integer. We say that an integer kk is a fan of nn if 0⩽k⩽n−10 \leqslant k \leqslant n-1 and there exist integers x,y,z∈Zx, y, z \in \mathbb{Z} such that

x2+y2+z2≡0( mod n);xyz≡k( mod n).\begin{aligned} x^{2}+y^{2}+z^{2} & \equiv 0 (\bmod n) ; \\ x y z & \equiv k (\bmod n) . \end{aligned}

Let f(n)f(n) be the number of fans of nn. Determine f(2020)f(2020).

Dataset text NuminaMath olympiads. Quoted with source.

Show the answer

101

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 baltic-way/2020/p18 · Tag 27SSPKE6BH · Edit this page on GitHub · Keys: j next, k previous