How do you find the number of terms given #s_n=341# and #1+4+16+64+...#?