You are on page 1of 1

We have the ff.

abstraction: -A SET OF FIVE ELEMENTS: { 1,2,3,4,5} -Two operations: step to the left and step to the right -1,+1. -If we are on card number 5 and would go right, we go left instead: 5+1 =5-1 = 4 - If we are on card number 1 would go left, we go right instead: 1-1= 1+1=2

1. Step: we move to card number 1 2. Step: we move 4 times. 4 is an even number, which yields only odd numbers as possible positions after step 2. Remember you cannot move from 1 to 5and vice versa! 3. Step: we move 3 times. 3 is odd, so we add an odd number to an odd number ( 1,3 or 5), which Yields an even number. 4. Step: we move an arbitrary number twice. Say our chosen number is k, then we will move (2 times k). (2*k) is even. So we add an even number to an even number, you have to move the same num. twice ! which yields an even number once Again. We stay on 2 or 4 5. Step : we take an even num. of steps: 6. Either 0 (female) or two times (male). Once again, an even num. plus an even num. yields an even number. So we will stay on 2 or 4. Final step: we move twice to right. 2+2=4 4+2=5+1=5 1 = 4

You might also like