The second question (with $n=2$) is a special case that may be worth keeping separate from the general case, since it only requires working with even and odd numbers. That makes the solution accessible to even elementary school students. Many students in my undergraduate number theory course, even after working with modular arithmetic for a few weeks, easily wrote proofs using even and odd numbers but did not see the straightforward generalization to integers modulo $n$ without prodding.
One of them could be closed as a duplicate, but I see value in leaving both of them, along with your helpful link that connects them.