Lame equation in the algebraic form