question: static double zetastatic ( long st , long n , double theta , double initialsum ) { double sum = initialsum ; for ( long i = st ; i < n ; i ++ ) { sum += 1 / ( Math . pow ( i + 1 , theta ) ) ; } return sum ; }
target:  Compute the zeta constant needed for the distribution. Do this incrementally for a distribution that has n items now but used to have st items. Use the zipfian constant theta. Remember the new value of n so that if we change the itemcount, we'll know to recompute zeta.