timus; solve "1, 100, 1000 ..." from Volume 3