Define the sequence An as: n, if n is odd An = 0, if n = 4t-2 1, if n = 4t whenever t is a positive integer.Derive a one-line expression for each of the following:
(i) An in terms of n
(ii) Sn in terms of n, where Sn denotes the sum of all the terms of An