swapped n in equations of a for consistency
up until end of single-sex reproduction