On a class of variational equations transformable to the Gauss hypergeometric equation