Positive integers $0 \le a_1 < a_2 < a_3 < \cdots < a_n$ are such that

$2^{a_1}+2^{a_2}+2^{a_3}+\cdots+2^{a_n} = 2020$

What is the value of $n$ ?

The answer is 7.

**
This section requires Javascript.
**

You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.