Description: Every positive integer can be represented as the sum of a power of 2 and a "remainder" smaller than the power. (Contributed by AV, 31-May-2020)
Ref | Expression | ||
---|---|---|---|
Assertion | nnpw2p | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | blennnelnn | |
|
2 | nnm1nn0 | |
|
3 | 1 2 | syl | |
4 | oveq2 | |
|
5 | 4 | oveq2d | |
6 | 4 | oveq1d | |
7 | 6 | eqeq2d | |
8 | 5 7 | rexeqbidv | |
9 | 8 | adantl | |
10 | nnz | |
|
11 | 2nn | |
|
12 | 11 | a1i | |
13 | 12 3 | nnexpcld | |
14 | zmodfzo | |
|
15 | 10 13 14 | syl2anc | |
16 | oveq2 | |
|
17 | 16 | eqeq2d | |
18 | 17 | adantl | |
19 | nnpw2pmod | |
|
20 | 15 18 19 | rspcedvd | |
21 | 3 9 20 | rspcedvd | |