I am reviewing the foundation course I took in year 1 while a question caught my eyes:
Let A be the congruence class of 1 mod 3, and B the congruence class of -1 mod 4. Prove that A∩B is a congruence class mod 12.
The answer is simple, 7 mod 12. However, I wonder if I need to prove that when m,n happen to be coprime ( hcf(m,n)=1, i.e hcf(3,4)=1 here in particular ), there exist a,b ( a,b belong to integers ) in which am+bn=1 beforehand.
I am not certain about it since the proof of it seems a bit too much for a question phrased as above: mZ+nZ=gZ for some g which belongs to natural numbers. g must to be a common factor of m and n, since mZ and nZ are subgroups of gZ. mZ+nZ (i.e gZ) is contained in every subgroup containing both mZ and nZ, hence, gZ=mZ+nZ=hcf(m,n)Z
Therefore, 1-(-1)=2=2(4-3)=2*4-2*3, 2*4-1=7=2*3+1 lcm(3,4)=12
May I ask do I really need to write down the proof of existence of (a,b) such that am+bn=1 when hcf(m,n)=1in order to answer this question?
Also, I really struggle to explain how I come up with 12 here.
Thank you so much!
Regards,