Thirty pupils numbered from 1 to 30 are asked to form a line. the first pupil is the line is asked to leave, the second pupil remains. the third pupil is
asked to leave the line, the fourth pupil remains....this process is repeated until one pupil remains in the line. what is the original number of the pupil that was left?