Latex - Long division by examples (updated with a fix for the gap)
Here is the first example of long division. You can run it on the website (or a website you prefer):
https://www.overleaf.com/ (now requires login)
https://latexbase.com (currently no login is needed)
If you have latex installed on your computer, that would be best since it can be faster and you will have more control.
A code that barely works is here, if you are not patient enough, you can skip this and go all the way near the end:
The output should be looks like this, but with a gap to the right of the radical sign.
You may use arraystretch to adjust the space. The above picture shows the result of a stretch by a factor of1.1.
A nice fix with the complete latex code, with comments(removed system genereated strings, so it can compile without errors now):It has 8 columns, n=8 (see the comments in the code and the reference link). The output should be looks like this:
As an exercise, modify the above code to get the output as in thhe following picture: