T220c

p = 23 (slider from 1 to 250, step 1)
l1 = Sequence((n, 1 / 2 + ((-1)^(n) * 1 / 2)), n, 1, p, 1)