Let a_0, a_1, \dots be a sequence satisfying the recurrence a_n = 2a_{n-1} + 1 with a_0 = 0.
We have a_1 = 2a_0 + 1 = 1; then a_2 = 2 \cdot 1 + 1 = 3; then a_3 = 7; and so on. The sequence starts 0, 1, 3, 7, 15, 31, 63, \dots
Looking at this we notice that every term of the sequence seems to be one less than a power of two, so we conjecture the closed form a_n = 2^n - 1. First, let’s check that this works for a_0, which it does: 2^0 - 1 = 1 - 1 = 0. Next, let’s see if a_n satisfies the recurrence when defined in this way. We can do this by substituting our conjectured closed form for a_n into the recurrence and seeing if the two sides are equal: 2a_{n-1} + 1 = 2(2^{n-1} - 1) + 1 = 2^n - 2 + 1 = 2^n - 1 = a_n. Yay! This is in fact a valid proof that this closed form and recurrence define the same sequence.