Google interview question

A simple mathy question, and a simple algorithm question