Use the sliders on the right to vary the red function's parameters. Use the step length slider on the left to move from integer interval lengths to rational ones.
Andreas Bauer, created with GeoGebra