Pergunta de entrevista da empresa dada.net

Solve some mathematical problems (number theory) randomly picked up from the web