Originally Posted by

**XER**
Ah, I thought of linear equations myself. Thank you for taking the time to post your method blabberer =).

XER

well you should have thought about quadratic equations as well

Code:

y = x + root x
120983 = x + sqrt(x)
let x = z^2
so
y = z^2 + z
z^2 +z -120983 = 0
solving this quadratic equation
ax^2 + bx +c = 0
where a= 1, b= 1, c= -120983
you get 347.326465353055 and -348.326465353055 as roots
ie
z = sqrt(x) = 347.326465353055
z^2 = x = 120635.673534646915325797833025
so y = x + sqrt(x) = 120982.999999999970325797833025 ~ = 120983
so since we are considering the integer part of sqrt
we should roundup 120635,67####
to 120636 which is your pw

## Bookmarks