https://imgur.com/a/UVd6mD8
1) By computer, the first sum is 1/(sin(3)), so n = 3.
2) By computer, n = 16384, so the answer is 384.