Problem

Source: Iran 3rd round 2017 Number theory first exam-P1

Tags: number theory, Divisibility, prime numbers, prime, Iran, IranMO



Let $n$ be a positive integer. Consider prime numbers $p_1,\dots ,p_k$. Let $a_1,\dots,a_m$ be all positive integers less than $n$ such that are not divisible by $p_i$ for all $1 \le i \le n$. Prove that if $m\ge 2$ then $$\frac{1}{a_1}+\dots+\frac{1}{a_m}$$is not an integer.