This document discusses methods for squaring numbers near multiples of 100 or 1000 and numbers ending in 5.
For numbers near multiples of 100 or 1000, you take the number, subtract the excess above the base, square the excess, and place it after the slash. For example, 998 squared is 998 - 2 / 2x2 = 996/004.
For numbers ending in 5, you take the digit before the 5, add 1, multiply that by the previous digit, place it before the slash, and square the 5 and place it after. For example, 25 squared is 2 x 3 / 5x5 = 6/25.