Find total number of Squares in a N*N cheesboard.
The first line contains an integer T, depicting total number of test cases. Then following T lines contains an integer N that is the side of the chessboard.
Each seperate line showing the maximum number of squares possible.
1 ≤ T ≤ 100
1 ≤ N ≤ 100
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.