Q. Number of ways of selecting three squares on a chessboard so that all the three be on a diagonal line of the board or parallel to it is

 2249  227 VITEEEVITEEE 2016 Report Error

Solution:

There are total squares in the chess board.
squares on the diagonal lines,
squares on each consecutive side of diagonal line,
on next to consecutive line of diagonal line and so on.
Number of ways