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

Задача 39184. 16-05


Задача

Темы: ЕГЭ
The algorithm for calculating the value of the function F(n), where n – natural number, given by the following relations:

F(n) = 5 if n <= 0;
F(n) = F(n / 4) + 7
if  0 < n <= 100, and n is a multiple of 4;
F(n) = F(n - 1) + 17 if  0 < n <= 100, and n is not a multiple of 4;
F(n) = F(n - 4) if n > 100.

What is the minimum value of n, for F(n) to exceed 100?