Dear Quin, Please consult https://sites.math.rutgers.edu/~zeilberg/Hist21/q5S.pdf for the full solutions. You got 10 points (out of 10). Good job. By accident you wrote N=sqrt(29), buf of course you meant N=29, so I did not take any points off. Best wishes, Dr. Z.