A small square is constructed inside a square of area 1 by dividing each side of the unit square into n equal parts, and then connecting the vertices to the division points closest to the opposite vertices, as shown in the figure on the right. Find the value of n if the area of the small square (shaded in the figure) is exactly 1 / 1985.