Graham's function