Let NN be a positive integer. In each of the N2N^2 unit squares of an N×NN \times N board, one of the two diagonals is drawn. The drawn diagonals divide the N×NN \times N board into KK regions. For each NN, determine the smallest and the largest possible values of KK.

figure

Example with N=3N = 3, K=7K = 7