x=(x 1+λx2)/( 1+λ)
y=(y 1+λy2)/( 1+λ),
The formula of n equal points is
x =(n-k)x 1+kx2]/n
y =(n-k)y 1+ky2]/n
Where k = 1, 2, ..., n- 1.