sum First Loss_
Sums the first order loss function from 1 up to and including x. x is interpreted as an integer
Return
the sum
Parameters
x
the value to evaluate
n
the number of trials
p
the probability of success
recursive
true if recursive algorithm is to be used