The algorithm for calculating the value of the function F(n)
, where n
– natural number, given by the following relations:
F(n) = 3
if n <= 10
;
F(n) = F(n / 5) + n
if 10 < n <= 200
, and the number n
is a multiple of 5;
F(n) = F(n - 1) + n
if 10 < n <= 200
and n
is not a multiple of 5;
F(n) = F(n - 5)
if n > 200.
For how many different values n
,
not exceeding 250
, the result F(n)
will be equal to 243
?