Consider $f: (a,a+p] \rightarrow \mathbb{R}$.
What is the "formula" for the p-periodic function $g$ which has the property that $g(x + np) = f(x)$ for all $x$ in $(a, a+p]$? I am well aware of how it looks like graphically, but in what formal notation is this function written, as a piecewise function?