You can do all rows except for n log n just by setting the function equal to the value and solving for n. For the n log n function, the easiest technique is unfortunately to simply use trial-and-error on a calculator.