assume rt2 is rational
then u can say rt2 = p/q where p,q are integers, with highest common factor 1
hence 2 = p^2/q^2
=> q^2*2 = p^2
=> p^2 is even
=> p is even
now u can express p as an even number:
p = 2k for some integer k
=> p^2 = 4k^2
=>2*q^2 = 4k^2
=>q^2 = 2k^2
=>q^2 is even
=> q is even
hence if q is even and p is even then the highest common factor of p and q is not 1, hence rt2 cannot be expressed as p/q
=> rt2 is irrational.
u can use the same method of proof for the second part, however in the middle u have to prove that if 3 divides n^2 then 3 divides n
thats simple too, just consider the remainders when 3 is divided by n
hope that helped