Gram Polynomials and the Kummer Function