Description: A positive integer is between 2 to the power of its binary length minus 1 and 2 to the power of its binary length. (Contributed by AV, 31-May-2020)
Ref | Expression | ||
---|---|---|---|
Assertion | nnpw2blen | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | 2rp | |
|
2 | 1 | a1i | |
3 | nnrp | |
|
4 | 1ne2 | |
|
5 | 4 | necomi | |
6 | 5 | a1i | |
7 | relogbcl | |
|
8 | 2 3 6 7 | syl3anc | |
9 | 8 | flcld | |
10 | 9 | zcnd | |
11 | pncan1 | |
|
12 | 10 11 | syl | |
13 | 12 | oveq2d | |
14 | blennn | |
|
15 | 14 | oveq1d | |
16 | 15 | oveq2d | |
17 | 2cnd | |
|
18 | 2ne0 | |
|
19 | 18 | a1i | |
20 | 17 19 9 | cxpexpzd | |
21 | 13 16 20 | 3eqtr4d | |
22 | flle | |
|
23 | 8 22 | syl | |
24 | 2re | |
|
25 | 24 | a1i | |
26 | 1lt2 | |
|
27 | 26 | a1i | |
28 | 9 | zred | |
29 | 25 27 28 8 | cxpled | |
30 | 23 29 | mpbid | |
31 | 2cn | |
|
32 | eldifpr | |
|
33 | 31 18 5 32 | mpbir3an | |
34 | nncn | |
|
35 | nnne0 | |
|
36 | eldifsn | |
|
37 | 34 35 36 | sylanbrc | |
38 | cxplogb | |
|
39 | 33 37 38 | sylancr | |
40 | 30 39 | breqtrd | |
41 | 21 40 | eqbrtrd | |
42 | flltp1 | |
|
43 | 8 42 | syl | |
44 | 9 | peano2zd | |
45 | 44 | zred | |
46 | 25 27 8 45 | cxpltd | |
47 | 43 46 | mpbid | |
48 | 17 19 44 | cxpexpzd | |
49 | 47 39 48 | 3brtr3d | |
50 | 14 | oveq2d | |
51 | 49 50 | breqtrrd | |
52 | 41 51 | jca | |