Problem

Source: Iran 3rd round 2011-number theory exam-p1

Tags: algorithm, number theory proposed, number theory



Suppose that $S\subseteq \mathbb Z$ has the following property: if $a,b\in S$, then $a+b\in S$. Further, we know that $S$ has at least one negative element and one positive element. Is the following statement true? There exists an integer $d$ such that for every $x\in \mathbb Z$, $x\in S$ if and only if $d|x$. proposed by Mahyar Sefidgaran