Define the sequenceDerive a one-line expression for each of the following:Aas: n, if n is odd_{n}A= 0, if n = 4t-2 1, if n = 4t whenever t is a positive integer._{n}

(i)

**A**in terms of n

_{n}(ii)

**S**in terms of n, where

_{n}**S**denotes the sum of all the terms of

_{n}**A**

_{n}