Thanks Petek.
It does, however, work if that value is 2:
sqrt(5) ~= 2.24, so 2 < sqrt(5) < 3
n = k*sqrt(5)-2k
2 < sqrt(5)
#n>0
sqrt(5) < 3
#n<k
#n*sqrt(5) is an integer. (this part is the same)
Both these proofs require a proof of a method for computing which two integers the square root lies between, which is not hard to find.
EDIT: or generically:
n = k*sqrt(x)-floor(sqrt(x))k
Then you don't need the extra step above. Instead x must be shown not to be a perfect square.
That doesn't work, because n is not a positive integer, which is needed for there to be a contradiction.Makes sense. Though that wouldn't work for proving that sqrt (5) is irrational, for instance. Easy to change though, you simply change the (-k) part to be (-4k), and then you get n<k iff sqrt (5) < 5.
It does, however, work if that value is 2:
sqrt(5) ~= 2.24, so 2 < sqrt(5) < 3
n = k*sqrt(5)-2k
2 < sqrt(5)
#n>0
sqrt(5) < 3
#n<k
#n*sqrt(5) is an integer. (this part is the same)
Both these proofs require a proof of a method for computing which two integers the square root lies between, which is not hard to find.
EDIT: or generically:
n = k*sqrt(x)-floor(sqrt(x))k
Then you don't need the extra step above. Instead x must be shown not to be a perfect square.