power of three (simplified version) | ScratchStats