Click the green flag to start. Hit the space bar and enter a number to see the pattern.
Remixed Gabbie2016's Function Machine to meet the challenge in her instructions.