I have the following question for homework.
Fix positive integers $a$ and $b$ . Here’s an inductive definition of a set $S$ :
Foundation rule: $a,b ∈ S$.
Constructor rule: If $m,n ∈ S$ , then $m − n ∈ S$.
(a) Suppose $h$ is a common factor of $a$ and $b$ . Use the exclusion rule to prove that for every $n ∈ S$ , $h$ divides $n$ .
(b) Suppose $k ∈ S$ is a positive integer which is not a factor of $a$ . Prove that there is some $l ∈ S $ such that $0 < l < k$ . (Hint: Consider the sequence $a,a − k,a − 2 k,...$ and use the fact that $\mathbb{N}$ is well-ordered.)
(c) In the same way that you proved (b), we may also prove the following fact: if $k ∈ S$ is a positive integer which is not a factor of $b$ , then there is some $l ∈ S$ such that $0 < l < k$ . Use (b) and the above fact to prove that there is some positive integer in $S$ which is a common factor of $a$ and $b$ . (Hint: Use the fact that $\mathbb{N}$ is well-ordered.)
(d) Use (a) and (c) to conclude that S contains gcd($a,b$).
I'm unsure about how to even start (a) and (b).
For (a) I thought something along the lines of "because $h$ is a common factor of $a$ and $b$, as $n ∈ S$, $h$ must be a divisor of $n$" yet apparently this is quite far off what we are supposed to do.
I have literally no idea how to even start (b).
Any help would be appreciated.