What is general term of the sequence : $1, 2, 4, 4, 8, 8, 8, 8, 16, 16, 16, 16, 16, 16, 16, 16, 32, 32 ...$?
If we start indexing at $n = 1$, we get $$a_n = 2^{\lceil \log_2 n\rceil}$$where $\lceil - \rceil$ is the ceiling function.
If we start indexing at $n = 1$, we get $$a_n = 2^{\lceil \log_2 n\rceil}$$where $\lceil - \rceil$ is the ceiling function.