Fractional parts of Linear polynomials and an application to hypergeometric functions