This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: ...... there you have it. .That is why it works for every number except for 1 : the number game could be like this take a number xsquare it x^2 add 2 multiplied by original number to it x^2 + 2x then add 1. .. X^2 + 2x + 1 Now divide this number by original number plus 1 (x^2+2x+1)/(x+1) Now subtract original number to get yes this game using skill of simplifying rational expressions. The game will not work for x = 1...
View Full
Document
 Spring '10
 Haskell

Click to edit the document details