0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

IPアドレス学習用の2進数対応表

Last updated at Posted at 2024-07-18

2^0から2^7までの乗算した値と2進数の対応表

Power of 2 Decimal Binary
2^0 1 1
2^1 2 10
2^2 4 100
2^3 8 1000
2^4 16 10000
2^5 32 100000
2^6 64 1000000
2^7 128 10000000

0から255までの2進数の対応表

Decimal Binary Calculation
0 00000000 0
1 00000001 (2^0 = 1)
2 00000010 (2^1 = 2)
3 00000011 (2^1 + 2^0 = 2 + 1 = 3)
4 00000100 (2^2 = 4)
5 00000101 (2^2 + 2^0 = 4 + 1 = 5)
6 00000110 (2^2 + 2^1 = 4 + 2 = 6)
7 00000111 (2^2 + 2^1 + 2^0 = 7)
8 00001000 (2^3 = 8)
9 00001001 (2^3 + 2^0 = 8 + 1 = 9)
10 00001010 (2^3 + 2^1 = 8 + 2 = 10)
11 00001011 (2^3 + 2^1 + 2^0 = 11)
12 00001100 (2^3 + 2^2 = 8 + 4 = 12)
13 00001101 (2^3 + 2^2 + 2^0 = 13)
14 00001110 (2^3 + 2^2 + 2^1 = 14)
15 00001111 (2^3 + 2^2 + 2^1 + 2^0 = 15)
16 00010000 (2^4 = 16)
17 00010001 (2^4 + 2^0 = 16 + 1 = 17)
18 00010010 (2^4 + 2^1 = 16 + 2 = 18)
19 00010011 (2^4 + 2^1 + 2^0 = 19)
20 00010100 (2^4 + 2^2 = 16 + 4 = 20)
21 00010101 (2^4 + 2^2 + 2^0 = 21)
22 00010110 (2^4 + 2^2 + 2^1 = 22)
23 00010111 (2^4 + 2^2 + 2^1 + 2^0 = 23)
24 00011000 (2^4 + 2^3 = 24)
25 00011001 (2^4 + 2^3 + 2^0 = 25)
26 00011010 (2^4 + 2^3 + 2^1 = 26)
27 00011011 (2^4 + 2^3 + 2^1 + 2^0 = 27)
28 00011100 (2^4 + 2^3 + 2^2 = 28)
29 00011101 (2^4 + 2^3 + 2^2 + 2^0 = 29)
30 00011110 (2^4 + 2^3 + 2^2 + 2^1 = 30)
31 00011111 (2^4 + 2^3 + 2^2 + 2^1 + 2^0 = 31)
32 00100000 (2^5 = 32)
33 00100001 (2^5 + 2^0 = 32 + 1 = 33)
34 00100010 (2^5 + 2^1 = 32 + 2 = 34)
35 00100011 (2^5 + 2^1 + 2^0 = 35)
36 00100100 (2^5 + 2^2 = 32 + 4 = 36)
37 00100101 (2^5 + 2^2 + 2^0 = 37)
38 00100110 (2^5 + 2^2 + 2^1 = 38)
39 00100111 (2^5 + 2^2 + 2^1 + 2^0 = 39)
40 00101000 (2^5 + 2^3 = 40)
41 00101001 (2^5 + 2^3 + 2^0 = 41)
42 00101010 (2^5 + 2^3 + 2^1 = 42)
43 00101011 (2^5 + 2^3 + 2^1 + 2^0 = 43)
44 00101100 (2^5 + 2^3 + 2^2 = 44)
45 00101101 (2^5 + 2^3 + 2^2 + 2^0 = 45)
46 00101110 (2^5 + 2^3 + 2^2 + 2^1 = 46)
47 00101111 (2^5 + 2^3 + 2^2 + 2^1 + 2^0 = 47)
48 00110000 (2^5 + 2^4 = 48)
49 00110001 (2^5 + 2^4 + 2^0 = 49)
50 00110010 (2^5 + 2^4 + 2^1 = 50)
51 00110011 (2^5 + 2^4 + 2^1 + 2^0 = 51)
52 00110100 (2^5 + 2^4 + 2^2 = 52)
53 00110101 (2^5 + 2^4 + 2^2 + 2^0 = 53)
54 00110110 (2^5 + 2^4 + 2^2 + 2^1 = 54)
55 00110111 (2^5 + 2^4 + 2^2 + 2^1 + 2^0 = 55)
56 00111000 (2^5 + 2^4 + 2^3 = 56)
57 00111001 (2^5 + 2^4 + 2^3 + 2^0 = 57)
58 00111010 (2^5 + 2^4 + 2^3 + 2^1 = 58)
59 00111011 (2^5 + 2^4 + 2^3 + 2^1 + 2^0 = 59)
60 00111100 (2^5 + 2^4 + 2^3 + 2^2 = 60)
61 00111101 (2^5 + 2^4 + 2^3 + 2^2 + 2^0 = 61)
62 00111110 (2^5 + 2^4 + 2^3 + 2^2 + 2^1 = 62)
63 00111111 (2^5 + 2^4 + 2^3 + 2^2 + 2^1 + 2^0 = 63)
64 01000000 (2^6 = 64)
65 01000001 (2^6 + 2^0 = 64 + 1 = 65)
66 01000010 (2^6 + 2^1 = 64 + 2 = 66)
67 01000011 (2^6 + 2^1 + 2^0 = 67)
68 01000100 (2^6 + 2^2 = 64 + 4 = 68)
69 01000101 (2^6 + 2^2 + 2^0 = 69)
70 01000110 (2^6 + 2^2 + 2^1 = 70)
71 01000111 (2^6 + 2^2 + 2^1 + 2^0 = 71)
72 01001000 (2^6 + 2^3 = 72)
73 01001001 (2^6 + 2^3 + 2^0 = 73)
74 01001010 (2^6 + 2^3 + 2^1 = 74)
75 01001011 (2^6 + 2^3 + 2^1 + 2^0 = 75)
76 01001100 (2^6 + 2^3 + 2^2 = 76)
77 01001101 (2^6 + 2^3 + 2^2 + 2^0 = 77)
78 01001110 (2^6 + 2^3 + 2^2 + 2^1 = 78)
79 01001111 (2^6 + 2^3 + 2^2 + 2^1 + 2^0 = 79)
80 01010000 (2^6 + 2^4 = 80)
81 01010001 (2^6 + 2^4 + 2^0 = 81)
82 01010010 (2^6 + 2^4 + 2^1 = 82)
83 01010011 (2^6 + 2^4 + 2^1 + 2^0 = 83)
84 01010100 (2^6 + 2^4 + 2^2 = 84)
85 01010101 (2^6 + 2^4 + 2^2 + 2^0 = 85)
86 01010110 (2^6 + 2^4 + 2^2 + 2^1 = 86)
87 01010111 (2^6 + 2^4 + 2^2 + 2^1 + 2^0 = 87)
88 01011000 (2^6 + 2^4 + 2^3 = 88)
89 01011001 (2^6 + 2^4 + 2^3 + 2^0 = 89)
90 01011010 (2^6 + 2^4 + 2^3 + 2^1 = 90)
91 01011011 (2^6 + 2^4 + 2^3 + 2^1 + 2^0 = 91)
92 01011100 (2^6 + 2^4 + 2^3 + 2^2 = 92)
93 01011101 (2^6 + 2^4 + 2^3 + 2^2 + 2^0 = 93)
94 01011110 (2^6 + 2^4 + 2^3 + 2^2 + 2^1 = 94)
95 01011111 (2^6 + 2^4 + 2^3 + 2^2 + 2^1 + 2^0 = 95)
96 01100000 (2^6 + 2^5 = 96)
97 01100001 (2^6 + 2^5 + 2^0 = 97)
98 01100010 (2^6 + 2^5 + 2^1 = 98)
99 01100011 (2^6 + 2^5 + 2^1 + 2^0 = 99)
100 01100100 (2^6 + 2^5 + 2^2 = 100)
101 01100101 (2^6 + 2^5 + 2^2 + 2^0 = 101)
102 01100110 (2^6 + 2^5 + 2^2 + 2^1 = 102)
103 01100111 (2^6 + 2^5 + 2^2 + 2^1 + 2^0 = 103)
104 01101000 (2^6 + 2^5 + 2^3 = 104)
105 01101001 (2^6 + 2^5 + 2^3 + 2^0 = 105)
106 01101010 (2^6 + 2^5 + 2^3 + 2^1 = 106)
107 01101011 (2^6 + 2^5 + 2^3 + 2^1 + 2^0 = 107)
108 01101100 (2^6 + 2^5 + 2^3 + 2^2 = 108)
109 01101101 (2^6 + 2^5 + 2^3 + 2^2 + 2^0 = 109)
110 01101110 (2^6 + 2^5 + 2^3 + 2^2 + 2^1 = 110)
111 01101111 (2^6 + 2^5 + 2^3 + 2^2 + 2^1 + 2^0 = 111)
112 01110000 (2^6 + 2^5 + 2^4 = 112)
113 01110001 (2^6 + 2^5 + 2^4 + 2^0 = 113)
114 01110010 (2^6 + 2^5 + 2^4 + 2^1 = 114)
115 01110011 (2^6 + 2^5 + 2^4 + 2^1 + 2^0 = 115)
116 01110100 (2^6 + 2^5 + 2^4 + 2^2 = 116)
117 01110101 (2^6 + 2^5 + 2^4 + 2^2 + 2^0 = 117)
118 01110110 (2^6 + 2^5 + 2^4 + 2^2 + 2^1 = 118)
119 01110111 (2^6 + 2^5 + 2^4 + 2^2 + 2^1 + 2^0 = 119)
120 01111000 (2^6 + 2^5 + 2^4 + 2^3 = 120)
121 01111001 (2^6 + 2^5 + 2^4 + 2^3 + 2^0 = 121)
122 01111010 (2^6 + 2^5 + 2^4 + 2^3 + 2^1 = 122)
123 01111011 (2^6 + 2^5 + 2^4 + 2^3 + 2^1 + 2^0 = 123)
124 01111100 (2^6 + 2^5 + 2^4 + 2^3 + 2^2 = 124)
125 01111101 (2^6 + 2^5 + 2^4 + 2^3 + 2^2 + 2^0 = 125)
126 01111110 (2^6 + 2^5 + 2^4 + 2^3 + 2^2 + 2^1 = 126)
127 01111111 (2^6 + 2^5 + 2^4 + 2^3 + 2^2 + 2^1 + 2^0 = 127)
128 10000000 (2^7 = 128)
129 10000001 (2^7 + 2^0 = 128 + 1 = 129)
130 10000010 (2^7 + 2^1 = 128 + 2 = 130)
131 10000011 (2^7 + 2^1 + 2^0 = 131)
132 10000100 (2^7 + 2^2 = 128 + 4 = 132)
133 10000101 (2^7 + 2^2 + 2^0 = 133)
134 10000110 (2^7 + 2^2 + 2^1 = 134)
135 10000111 (2^7 + 2^2 + 2^1 + 2^0 = 135)
136 10001000 (2^7 + 2^3 = 136)
137 10001001 (2^7 + 2^3 + 2^0 = 137)
138 10001010 (2^7 + 2^3 + 2^1 = 138)
139 10001011 (2^7 + 2^3 + 2^1 + 2^0 = 139)
140 10001100 (2^7 + 2^3 + 2^2 = 140)
141 10001101 (2^7 + 2^3 + 2^2 + 2^0 = 141)
142 10001110 (2^7 + 2^3 + 2^2 + 2^1 = 142)
143 10001111 (2^7 + 2^3 + 2^2 + 2^1 + 2^0 = 143)
144 10010000 (2^7 + 2^4 = 144)
145 10010001 (2^7 + 2^4 + 2^0 = 145)
146 10010010 (2^7 + 2^4 + 2^1 = 146)
147 10010011 (2^7 + 2^4 + 2^1 + 2^0 = 147)
148 10010100 (2^7 + 2^4 + 2^2 = 148)
149 10010101 (2^7 + 2^4 + 2^2 + 2^0 = 149)
150 10010110 (2^7 + 2^4 + 2^2 + 2^1 = 150)
151 10010111 (2^7 + 2^4 + 2^2 + 2^1 + 2^0 = 151)
152 10011000 (2^7 + 2^4 + 2^3 = 152)
153 10011001 (2^7 + 2^4 + 2^3 + 2^0 = 153)
154 10011010 (2^7 + 2^4 + 2^3 + 2^1 = 154)
155 10011011 (2^7 + 2^4 + 2^3 + 2^1 + 2^0 = 155)
156 10011100 (2^7 + 2^4 + 2^3 + 2^2 = 156)
157 10011101 (2^7 + 2^4 + 2^3 + 2^2 + 2^0 = 157)
158 10011110 (2^7 + 2^4 + 2^3 + 2^2 + 2^1 = 158)
159 10011111 (2^7 + 2^4 + 2^3 + 2^2 + 2^1 + 2^0 = 159)
160 10100000 (2^7 + 2^5 = 160)
161 10100001 (2^7 + 2^5 + 2^0 = 161)
162 10100010 (2^7 + 2^5 + 2^1 = 162)
163 10100011 (2^7 + 2^5 + 2^1 + 2^0 = 163)
164 10100100 (2^7 + 2^5 + 2^2 = 164)
165 10100101 (2^7 + 2^5 + 2^2 + 2^0 = 165)
166 10100110 (2^7 + 2^5 + 2^2 + 2^1 = 166)
167 10100111 (2^7 + 2^5 + 2^2 + 2^1 + 2^0 = 167)
168 10101000 (2^7 + 2^5 + 2^3 = 168)
169 10101001 (2^7 + 2^5 + 2^3 + 2^0 = 169)
170 10101010 (2^7 + 2^5 + 2^3 + 2^1 = 170)
171 10101011 (2^7 + 2^5 + 2^3 + 2^1 + 2^0 = 171)
172 10101100 (2^7 + 2^5 + 2^3 + 2^2 = 172)
173 10101101 (2^7 + 2^5 + 2^3 + 2^2 + 2^0 = 173)
174 10101110 (2^7 + 2^5 + 2^3 + 2^2 + 2^1 = 174)
175 10101111 (2^7 + 2^5 + 2^3 + 2^2 + 2^1 + 2^0 = 175)
176 10110000 (2^7 + 2^5 + 2^4 = 176)
177 10110001 (2^7 + 2^5 + 2^4 + 2^0 = 177)
178 10110010 (2^7 + 2^5 + 2^4 + 2^1 = 178)
179 10110011 (2^7 + 2^5 + 2^4 + 2^1 + 2^0 = 179)
180 10110100 (2^7 + 2^5 + 2^4 + 2^2 = 180)
181 10110101 (2^7 + 2^5 + 2^4 + 2^2 + 2^0 = 181)
182 10110110 (2^7 + 2^5 + 2^4 + 2^2 + 2^1 = 182)
183 10110111 (2^7 + 2^5 + 2^4 + 2^2 + 2^1 + 2^0 = 183)
184 10111000 (2^7 + 2^5 + 2^4 + 2^3 = 184)
185 10111001 (2^7 + 2^5 + 2^4 + 2^3 + 2^0 = 185)
186 10111010 (2^7 + 2^5 + 2^4 + 2^3 + 2^1 = 186)
187 10111011 (2^7 + 2^5 + 2^4 + 2^3 + 2^1 + 2^0 = 187)
188 10111100 (2^7 + 2^5 + 2^4 + 2^3 + 2^2 = 188)
189 10111101 (2^7 + 2^5 + 2^4 + 2^3 + 2^2 + 2^0 = 189)
190 10111110 (2^7 + 2^5 + 2^4 + 2^3 + 2^2 + 2^1 = 190)
191 10111111 (2^7 + 2^5 + 2^4 + 2^3 + 2^2 + 2^1 + 2^0 = 191)
192 11000000 (2^7 + 2^6 = 192)
193 11000001 (2^7 + 2^6 + 2^0 = 193)
194 11000010 (2^7 + 2^6 + 2^1 = 194)
195 11000011 (2^7 + 2^6 + 2^1 + 2^0 = 195)
196 11000100 (2^7 + 2^6 + 2^2 = 196)
197 11000101 (2^7 + 2^6 + 2^2 + 2^0 = 197)
198 11000110 (2^7 + 2^6 + 2^2 + 2^1 = 198)
199 11000111 (2^7 + 2^6 + 2^2 + 2^1 + 2^0 = 199)
200 11001000 (2^7 + 2^6 + 2^3 = 200)
201 11001001 (2^7 + 2^6 + 2^3 + 2^0 = 201)
202 11001010 (2^7 + 2^6 + 2^3 + 2^1 = 202)
203 11001011 (2^7 + 2^6 + 2^3 + 2^1 + 2^0 = 203)
204 11001100 (2^7 + 2^6 + 2^3 + 2^2 = 204)
205 11001101 (2^7 + 2^6 + 2^3 + 2^2 + 2^0 = 205)
206 11001110 (2^7 + 2^6 + 2^3 + 2^2 + 2^1 = 206)
207 11001111 (2^7 + 2^6 + 2^3 + 2^2 + 2^1 + 2^0 = 207)
208 11010000 (2^7 + 2^6 + 2^4 = 208)
209 11010001 (2^7 + 2^6 + 2^4 + 2^0 = 209)
210 11010010 (2^7 + 2^6 + 2^4 + 2^1 = 210)
211 11010011 (2^7 + 2^6 + 2^4 + 2^1 + 2^0 = 211)
212 11010100 (2^7 + 2^6 + 2^4 + 2^2 = 212)
213 11010101 (2^7 + 2^6 + 2^4 + 2^2 + 2^0 = 213)
214 11010110 (2^7 + 2^6 + 2^4 + 2^2 + 2^1 = 214)
215 11010111 (2^7 + 2^6 + 2^4 + 2^2 + 2^1 + 2^0 = 215)
216 11011000 (2^7 + 2^6 + 2^4 + 2^3 = 216)
217 11011001 (2^7 + 2^6 + 2^4 + 2^3 + 2^0 = 217)
218 11011010 (2^7 + 2^6 + 2^4 + 2^3 + 2^1 = 218)
219 11011011 (2^7 + 2^6 + 2^4 + 2^3 + 2^1 + 2^0 = 219)
220 11011100 (2^7 + 2^6 + 2^4 + 2^3 + 2^2 = 220)
221 11011101 (2^7 + 2^6 + 2^4 + 2^3 + 2^2 + 2^0 = 221)
222 11011110 (2^7 + 2^6 + 2^4 + 2^3 + 2^2 + 2^1 = 222)
223 11011111 (2^7 + 2^6 + 2^4 + 2^3 + 2^2 + 2^1 + 2^0 = 223)
224 11100000 (2^7 + 2^6 + 2^5 = 224)
225 11100001 (2^7 + 2^6 + 2^5 + 2^0 = 225)
226 11100010 (2^7 + 2^6 + 2^5 + 2^1 = 226)
227 11100011 (2^7 + 2^6 + 2^5 + 2^1 + 2^0 = 227)
228 11100100 (2^7 + 2^6 + 2^5 + 2^2 = 228)
229 11100101 (2^7 + 2^6 + 2^5 + 2^2 + 2^0 = 229)
230 11100110 (2^7 + 2^6 + 2^5 + 2^2 + 2^1 = 230)
231 11100111 (2^7 + 2^6 + 2^5 + 2^2 + 2^1 + 2^0 = 231)
232 11101000 (2^7 + 2^6 + 2^5 + 2^3 = 232)
233 11101001 (2^7 + 2^6 + 2^5 + 2^3 + 2^0 = 233)
234 11101010 (2^7 + 2^6 + 2^5 + 2^3 + 2^1 = 234)
235 11101011 (2^7 + 2^6 + 2^5 + 2^3 + 2^1 + 2^0 = 235)
236 11101100 (2^7 + 2^6 + 2^5 + 2^3 + 2^2 = 236)
237 11101101 (2^7 + 2^6 + 2^5 + 2^3 + 2^2 + 2^0 = 237)
238 11101110 (2^7 + 2^6 + 2^5 + 2^3 + 2^2 + 2^1 = 238)
239 11101111 (2^7 + 2^6 + 2^5 + 2^3 + 2^2 + 2^1 + 2^0 = 239)
240 11110000 (2^7 + 2^6 + 2^5 + 2^4 = 240)
241 11110001 (2^7 + 2^6 + 2^5 + 2^4 + 2^0 = 241)
242 11110010 (2^7 + 2^6 + 2^5 + 2^4 + 2^1 = 242)
243 11110011 (2^7 + 2^6 + 2^5 + 2^4 + 2^1 + 2^0 = 243)
244 11110100 (2^7 + 2^6 + 2^5 + 2^4 + 2^2 = 244)
245 11110101 (2^7 + 2^6 + 2^5 + 2^4 + 2^2 + 2^0 = 245)
246 11110110 (2^7 + 2^6 + 2^5 + 2^4 + 2^2 + 2^1 = 246)
247 11110111 (2^7 + 2^6 + 2^5 + 2^4 + 2^2 + 2^1 + 2^0 = 247)
248 11111000 (2^7 + 2^6 + 2^5 + 2^4 + 2^3 = 248)
249 11111001 (2^7 + 2^6 + 2^5 + 2^4 + 2^3 + 2^0 = 249)
250 11111010 (2^7 + 2^6 + 2^5 + 2^4 + 2^3 + 2^1 = 250)
251 11111011 (2^7 + 2^6 + 2^5 + 2^4 + 2^3 + 2^1 + 2^0 = 251)
252 11111100 (2^7 + 2^6 + 2^5 + 2^4 + 2^3 + 2^2 = 252)
253 11111101 (2^7 + 2^6 + 2^5 + 2^4 + 2^3 + 2^2 + 2^0 = 253)
254 11111110 (2^7 + 2^6 + 2^5 + 2^4 + 2^3 + 2^2 + 2^1 = 254)
255 11111111 (2^7 + 2^6 + 2^5 + 2^4 + 2^3 + 2^2 + 2^1 + 2^0 = 255)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?