I am taking a first course in discrete mathematics. The instructor parsed the following question that has the following solution, respectively:
Prove the statement:
For all positive integers $N$, there exists a real number $x$, so that $x$ is not an integer, $x>N$, and $\lfloor x^2\rfloor = \lfloor x\rfloor^2$.
Why is $x= N+ 1/(3N)$ used? I do not understand this statement. Is $1/(3N)$ some axiom of non-integer real numbers?
Also, what is the intuition behind squaring both sides at the end of the third line of the solution?

If you feel like numbers and expressions are appearing out of nowhere for no apparent reason, it's because they are. It's part of the magic show of a completed proof to get a round of applause at the end when all the various pieces come together and fall neatly into place to produce the desired answer.
What the proof could have done to reduce the suspense but perhaps improve understanding is to tell you at the outset that the intention is to find a real $x$ for which $\lfloor x \rfloor =N$ and $\lfloor x^2\rfloor = N^2$, by making $x$ just a tiny fraction larger than $N$. The exploratory part - seeing just how tiny that fraction has to be - is left out of the proof; you just get to see the fruits of that investigation, a tiny but well-defined fraction that does the job.