Comments

Challenge Response 38


I squared a number…

Let's call the desired result of no, and the initial number of x. According to the statement, we have to

n = (x2 -– x) / x.

With factoring, we found that:

n = (x -– 1). x / x.

Simply put, we have to n = x -– 1, or the number minus 1.

Back to statement