Fix  mathematical definition of the procedure (g n).
Solved 1-10.