Any time you're trying to do a proof, you need to look at what your premises are. If you're trying to prove this in Peano arithmetic, then you have the axiom that (a = b) => (a+1=b+1). So if (a+n)=(b+n), then (a+n)+1=(b+n)+1, and by associativity a+(n+1)=b+(n+1).