| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-------------------------------------------editorial------------------------------------------------------------------
2
|
It is simply . I can explain if anyone wants to, just because this post is so old , I dont think anyone will bother to see it
EDIT: Let the equation of line be :
=
Now just switching the positions of these expressions we get:
=
Now , y - y1 should be equal to k * .
Why ? x should be integer! if we write x in terms of everything else We will see
should be Integer.
Now I say that k1=0 Gives me y1 , to find the final kn , I put y= y2 into this equation (x2,y2 is the last integral point) .
That gives me kn= . Now , every k between 0 and this kn are integral points!
If you include the initial point too ans is +1 .
If you exclude initial and final points ans is -1.
|
No comments:
Post a Comment