module documentation

Provides recursive function linear_sum(S,n) that returns sum of first n numbers of sequence S.

Function linear_sum Return the sum of the first n numbers of sequence S.
def linear_sum(S, n):

Return the sum of the first n numbers of sequence S.