The algorithm for calculating the value of the function F(n)
, where n
– natural number, given by the following relations:
F(n) = 0
if n <= 10
;
F(n) = F(n / 7) + n
if 10 < n <= 200
, and the number n
is a multiple of 7;
F(n) = F(n - 1) + n
if 10 < n <= 200
and n
is not a multiple of 7;
F(n) = F(n - 7)
if n > 200.
With how many different values n
,
in the range [1, 100]
, the result F(n)
will be equal to n
?