Given and integer n. Print the sum of series 13 + 23 + 33 + 43 + …….+ n3 till n-th term.
The first line consists of an integer T i.e number of test cases. The first and only line of each test case consists of an integer n. As the output could be large so take mod with 109+7.
Print the required sum.
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.