What is the sum of the geometric series in which a1 = 4, r = 2, and an = 512?

Answer choices:

ASn=1,020

B)-252

C)43,690

D)-1,020