Exercise 6.3 from Crossley 2005 Essential Topology https://link.springer.com/book/10.1007/1-84628-194-6
Prove that a discrete space consisting of $m$ points is homotopy equivalent to a discrete space consisting of $n$ points if, and only if, $m = n$.
I think the proof generalises the proposition that a 2 point space is not contractible (Proposition 6.19 in Crossley 2005), where essentially we argue that if it were contractible, then we can use the homotopy to construct a continuous map that is surjective onto the 2-point space, which is a contradiction. I've tried to formulate an inductive argument, but have failed.
Help appreciated, particularly on how to get started. I'm a beginner at this subject.
Also looking for a more elementary proof than the suggested duplicate, which has been provided below.