Social networks

For example 2 in Counting 2, is it supposed to be |x1-x(i+1)|=i not n?

Not exactly. It is indeed a typo: it should be $|x_i - x_{i+1}|=n$; note the $x_i$ instead of $x_1$.

I will update the packet itself.

Social networks