We have
$43 \equiv 1 \mod n$.
How to find all $n\in\mathbb{N}$?
So I know formula $b = a + kn$, where $k\in\mathbb{Z}$. It looks to me like I need to calculate all combinations of $k$ and $n$ which will give $42$, or to find all natural numbers which are dividing $42$.
Am I missing something obvious, and if so, what is the easiest way to calculate all n's?
It's true that it suffices to compute all the natural numbers which divide $42$. There are only $8$ (positive) factors of $42$.