F(1) = 1 F(n) = F(n-1)*n, при n > 1
F(0) = 1, F(1) = 1 F(n) = F(n-1)+F(n-2), при n > 1
F(0) = 1, F(1) = 1 F(n) = F(n-1)*F(n-2)+2, при n > 1
F(1) = 1, F(2) = 1 F(n) = F(n-2)*(n-1), при n > 2
procedure F(n: integer); begin writeln('*'); if n > 0 then begin F(n-2); F(n-2); F(n div 2); end end;
procedure F(n: integer); begin writeln('*'); if n > 0 then begin F(n-3); F(n-2); F(n div 2); F(n div 2); end end;
procedure F(n: integer); begin writeln('*'); if n > 0 then begin writeln('*'); F(n-2); F(n-2); F(n div 2); end end;
procedure F(n: integer); begin writeln(n); if n < 5 then begin F(n+1); F(n+2); F(n*3) end end;
procedure F(n: integer); forward; procedure G(n: integer); forward; procedure F(n: integer); begin if n > 0 then G(n - 1); end; procedure G(n: integer); begin writeln('*'); if n > 1 then F(n - 2); end;
procedure F(n: integer); forward; procedure G(n: integer); forward; procedure F(n: integer); begin if n > 0 then G(n - 1); end; procedure G(n: integer); begin writeln('*'); if n > 1 then begin writeln('*'); F(n - 2); end; end;