why your second P is differert from first P ?
I think that the different P point is the previous point but halving if you see its the same n value, so the only way to get (K1 / 2 = K2) , is halving N or halving the point.
the challenge look interesting at my first try i get 0/0 so i need to check my math.
Best regards