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 <= 0;
F(n) = F(n / 6) + 12 if n > 0 and the number n is a multiple of 6;
F(n) = F(n - n mod 6) if n > 0 and the number n is not a multiple of 6;
What is the maximum value of n, result F(n) at most 25?
The operation a mod b calculates the remainder of dividing a by b.