Extension of geometric series to hypergeometric function in Hindu mathematics