Олимпиадный тренинг

Задача 21723. sum of divisors


Задача

Темы: Рекурсия
Given a natural number n, calculate the sum of all its natural divisors, including 1 and the number itself. Write the solution as a RECURSIVE function with one parameter. The main program must contain initial data input, function call and output response
Forbidden to use loops in the program

Examples
# Input Output
1 6 12

Запрещенные операторы:for;while;until