Exercises from http://www.ime.usp.br/~macmulti/