For define a step function on the interval
by
Then, define
- Calculate
.
- Find all values of
such that
.
- We calculuate:
-
.
Note: There is an error in the book. The answers in the back of the book claim that , which is incorrect.
Hi Rori. Can you please elaborate further about your solution in part b please?
You can solve it pretty fast just by a little inspection, you can see pretty fast for witch value of p, the sum -1 + 2 -3 + …… + s(p-1) = 7 (absolute value)
You can split the sum in even and odd part and then it is easy to have a closed formula.
From the integrals you can observe that this formula follows a recursive pattern, which is
. Then you can code this function in your favourite programming language and enter a while loop to find out for which
‘s you get
or
.