The first term of a geometric series is 16, the last term. is and that the sum is 31⁄2. Find the common ratio and the number of terms.​