Choose a 3-digit number as an input and apply the following rule to it, one step at a time:[list][*]Multiply your number by 7.[/*][*]Add one to the result.[/*][*]Multiply the result by 11.[/*][*]Subtract 5 from the result.[/*][*]Multiply the result by 13[/*][*]Subtract 78 from the result to get the output.[/*][/list]
If we apply the steps to a generic 3-digit number x, the result is13(11(7x+1)−5)−78=1,001xFor any 3-digit number x, the number 1,001x is just that number repeated twice. This works since 1,001x=1,000x+x, so for example, 1,001⋅314=1,000⋅314+1⋅314=314,000+314=314,314