P19621 [HackerEarth] Solve the query ,
普及
题目描述

Solve the query ,

given f(0)=0 , f(1)=1 , f(2)=1

f(n) = f(n-2) + f(n-3) + n*2

Input

First line denotes the number of test cases T

T lines follow each containing a number n

Output

Output T lines, As the number can be very large, output the answer modulo 10000003.

Constraints

1< t ≤1000

1< n ≤10^9

SAMPLE INPUT
3
2
6
17

SAMPLE OUTPUT
1
29
1067

输入格式

见题面

输出格式

见题面

样例输入
3 2 6 17
样例输出
1272425 8189265 1067 32385 797 2235004 1457326 7327073 1090302 1272425 8189265 1067 759117 7450440 7199179 5926632 545792 8439207