Certain families of algebraic curves and polynomials and their connections to hypergeometric functions