allocate just enough memory for strings
allow testing exponents besides the first in family