Your sequence is:
1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, ...etc.
The "closed form" of the sequence is:
a(n) =2^(n - 1)
2^(n - 1) > 5000, solve for n
n>=14 and 2^(14 - 1 )==2^13 =8,192 - the value of the 14th term.