<filename>problemsets/Codeforces/Python/C1353.py
"""
 *
 * Author:  <NAME>(coderemite)
 * Email: <EMAIL>
 *
 """
for _ in[0]*int(input()):
  n=int(input())//2
  print(n*(n+1)*(2*n+1)//6*8)
<filename>problemsets/Codeforces/Python/C1353.py
"""
 *
 * Author:  <NAME>(coderemite)
 * Email: <EMAIL>
 *
 """
for _ in[0]*int(input()):
  n=int(input())//2
  print(n*(n+1)*(2*n+1)//6*8)
*  * Author:  <NAME>(coderemite)  * Email: <EMAIL>  *