pw = Piecewise[{{4 + Sin[k 2 Pi/5], k <= 12}, {k Sin[k 2 Pi/10], 12 < k <= 50}, {50 (-1)^k/(k - 50), k > 50}}]
Sum[pw, {k, 1, Infinity}]
DiscretePlot[pw, {k, 0, 75}]