If the complex sequence {an} satisfies A1 = 0, an = (an-1) ^ 2 + I (n is greater than or equal to 2), then the sum of its first 2007 terms is?

If the complex sequence {an} satisfies A1 = 0, an = (an-1) ^ 2 + I (n is greater than or equal to 2), then the sum of its first 2007 terms is?

Periodic sequence: A1 = 0, A2 = I A3 = I-1, A4 = - I A5 = I-1, A6 = - I. see the rule, all the following items are the alternation of I-1 and - I. so the sum of 2007 items is 2i-1003