Math magic trick