Sn is the sum of the first n terms of a series given by Sn…