so I\'ve been struggling with this example for a good hour now and I can\'t even begin to process how should I do this.
Write a program that, for given n