If the general term formula of sequence an is an = 2n-37, what is the value of n when the first n term and Sn are minimized

If the general term formula of sequence an is an = 2n-37, what is the value of n when the first n term and Sn are minimized

{an} is an increasing sequence. When SN is the minimum, an should be negative and n should be as large as possible
So n = 18 (so A18 = - 1 and A19 = 1)
At this time, S18 = (- 35) + (- 33) + +(- 1) = - 324 is the minimum