### Home > CCA2 > Chapter 6 > Lesson 6.1.2 > Problem6-26

6-26.

Mark claims to have created a sequence of three function machines that always gives him the same number he started with.

1. Test his machines. Do you think he is right?

Test his machines multiple times with different numbers.

2. Be sure to test negative numbers. What happens for negative numbers?

Again, test several different numbers.

3. Mark wants to get his machines patented but has to prove that the set of machines will always do what he says it will, at least for positive numbers. Show Mark how to prove that his machines work for positive numbers by dropping in a variable (for example, $n$) and writing out each step the machines must take.

Input: $n$
machine 1: $(n)+2$
output 1: $n+2$
machine 2: $(n+2)^2−4(n+2)$
output 2: $n^2−4$

4. Why do the negative numbers come out positive?

Look at the steps that the variable went through in part (c). Pay careful attention to what happens when it passes through the third machine.

Use the eTool below to test the machine.
Click the link at right for the full version of the eTool: CCA2 6-26 HW eTool