One Dimensional Ising Model With Mathematics