I wont to build a graphical representation of numbers, as "waves":

Similar as the graphic of `sin x`

but for each number N it gets bigger and bigger
crosses the `x axes`

in the multiples of N,

with `y`

from -N to +N

and repeating every 2N.

I found this tool usefull for the drawing:

Can some one help me with finding the function ?