# DCP-210: Gabu and the Series Back to All Problems

Beginner Beginners Problems > Ad-hoc

Gabu is very talented boy. He is obsessed with number series. One day his friend Tabu challenged him to solve the following series: 0, 2, 8, 18, 32, 50, 72, 98......... n. His task is to find nth number of the series. Input: ------ Input starts with an integer **T (1<=20)**, denoting the number of test cases. Each case contains an integer **N (1 ≤ N ≤ 1000000)** Output: ------- You have to print the Nth number of the above mentioned series. Sample Input ------------ 4 5 8 9 100 Sample Output ------------- 32 98 128 19602

### Problem Limits

 Language Time Limit (seconds) C 1.00 C++ 1.00 C++14 1.00 C# 3.00 Go 3.00 Java 3.00 JavaScript 3.00 Objective-C 3.00 Perl 3.00 PHP 3.00 Python 3.00 Python3 3.00 Ruby 3.00 VB.Net 3.00

# 370/718

Solve/Submission

### Ranking

# User Language Timing
01 taohid Cpp14 0.00s
02 ash12 Cpp14 0.00s
03 Islam_Rafat Cpp14 0.00s
04 Knight_King Cpp14 0.00s
05 Anubis Cpp14 0.00s
06 Ramprosad Cpp14 0.00s
07 Flash_DS Cpp14 0.00s
08 Arpan_cse_2k14 Cpp14 0.00s
09 jamil993 Cpp14 0.00s
10 mjtbasif Cpp14 0.00s
11 S_M_Rayhan Cpp14 0.00s
12 Gang_Of_Three_01 Cpp14 0.00s
13 nabil_053 Cpp14 0.00s
14 Suhi31 Cpp14 0.00s
15 imAnik Cpp14 0.00s
16 hrOarr Cpp14 0.00s
17 sakib_ruet_13 Cpp14 0.00s
18 prottoy919 Cpp14 0.00s
19 aseem_cu Cpp14 0.00s
20 Ansarul_14 Cpp14 0.00s
21 snow_man Cpp14 0.00s
22 Masum_ice Cpp14 0.00s
23 CodeMechanix Cpp14 0.00s
24 Najat Cpp14 0.00s
25 burhan103335 Cpp14 0.00s
26 AlaminJust Cpp14 0.00s
27 msiamn Cpp14 0.00s
28 kowsher66 Cpp14 0.00s
29 abdulhalimchy Cpp14 0.00s
30 SIU_LasToNe Cpp14 0.00s
31 emrul Cpp14 0.00s
32 Rajan_sust Cpp14 0.00s
33 mamunparvez Cpp14 0.00s
34 hiddenhopes Cpp14 0.00s
35 abd_iubat Cpp14 0.00s
36 subhashis_cse Cpp14 0.00s
37 arnob_nstu Cpp14 0.00s
38 SNaeem Cpp14 0.00s
39 xb_saykat Cpp14 0.00s
40 chandan Cpp14 0.00s
41 AbirRahman Cpp14 0.00s
42 nazmul_bzs Cpp14 0.00s
43 codebreaker007 Cpp14 0.00s
44 Raka143 Cpp14 0.00s
45 azizul400 Cpp14 0.00s
46 ibrahimnsu15 Cpp14 0.00s
47 return_aim Cpp14 0.00s
48 shamiul_pust Cpp14 0.00s
49 MAHRahat Cpp14 0.00s
50 FariD Cpp14 0.00s
Feedback