Rational functions associated to presentations of finite groups