An analytic approach to maximize entropy for computing equilibrium densities of k-mers on linear chains. (18th January 2021)