Henry Ernest Dudeney/Modern Puzzles/128 - Lines and Squares/General Solution

by : $128$

 * Lines and Squares

General Solution
With $n$ straight lines we can make as many as:


 * $\dfrac {\paren {n - 3} \paren {n - 2} \paren {n + 1} } {24}$ squares if $n$ is odd


 * $\dfrac {\paren {n - 2} \paren {n - 1} n } {24}$ squares if $n$ is even.