Skip to content / Đến nội dung
ThichHocToan.com

MathNet 2022-part-06 — 196 problems (EN–VI) Question 172

Math Olympiad Vault · MathNet 2022-part-06 — 196 problems (EN–VI)

Question 172

Call an ordered pair $(a, b)$ of positive integers fantastic if and only if $a, b \leq 10^{4}$ and
$$
\operatorname{gcd}(a \cdot n!-1, a \cdot(n+1)!+b)\gt 1
$$
for infinitely many positive integers $n$. Find the sum of $a+b$ across all fantastic pairs $(a, b)$.