Recursive pattern with closure

Deduce from the given examples what has to be done in this problem. Find a solution with a RECURSIVE function/procedure, which writes to the output.

Input

The input has several cases. Each case consists of a positive natural number in one line.

Output

For each case, a recursive sequence is drawn on the output, followed by a blank line. Pay attention to the examples to deduce what the output has to be for each input.

Problem information

Author: PRO1

Generation: 2026-01-25T21:52:52.885Z

© Jutge.org, 2006–2026.
https://jutge.org