We use cookies to personalise content and advertisements and to analyse access to our website. Furthermore, our partners for online advertising receive pseudonymised information about your use of our website.
Please click on "Accept cookies" if you agree to the setting of cookies. Cookies that do not require consent remain unaffected by this, see
cookie policy and privacy policy.
DECLINE COOKIES

An annoyed teacher asked her student to do the following:

(1) Start with the number 12. Go to step (2).

(2) Take the negative of the number reached at the end of the previous step. Go to step (3).

(3) Add 1 to the number reached at the end of the previous step. Go to step (4).

(4) Go back to step (2) unless you have already gone through step (3) a hundred times; if you have gone through step (3) a hundred times already, tell the teacher the last number you reached.

To the teacher's surprise, the student gave her the correct final answer within a minute. What was it?

tertre Apr 4, 2018