ack function and math series assignments