Power of two

In mathematics, a power of two is any of the nonnegative integer powers of the number two; in other words, two times itself a certain number of times. Note that one is a power (the zeroth power) of two. Written in binary, a power of two always has the form 10000...0, just like a power of ten in the decimal system.

Because two is the base of the binary system, powers of two are important to computer science. Specifically, two to the power of n is the number of ways the bits in a binary integer of length n can be arranged, and thus numbers that are one less than a power of two denote the upper bounds of integers in binary computers (one less because 0, not 1, is used as the lower bound). As a consequence, numbers of this form show up frequently in computer software. As one example, in the video game The Legend of Zelda for the 8-bit Nintendo, one can only hold 255 rupees at one time - the result of a byte, which is 8 bits long, being used to store the number, giving a maximum value of 28-1 = 255.

Powers of two also measure computer memory. A byte is eight (23) bits, and a kilobyte (some prefer the word kibibyte) is 1 024 (210) bytes. Nearly all processor registers have sizes that are powers of two (32 being currently used in most personal computers).

Powers of two occur in a range of other places as well. For many disk drives, at least one of the sector size, number of sectors per track, and number of tracks per surface is a power of two. The logical block size is almost always a power of two.

Numbers which are not powers of two occur in a number of situations such as video resolutions, but they are often the sum or product of only two or three powers of two, or powers of two minus one. For example, 640 = 512 + 128, and 480 = 32 × 15. Put another way, they have fairly regular bit patterns.

A prime number that is one less than a power of two is called a Mersenne prime. For example, the prime number 31 is a Mersenne prime because it is 1 less than 32 (25).


The first forty powers of two

2 1
<center> = 2           <center> 211 <center> = 2 048           <center> 221 <center> = 2 097 152           <center> 231 <center> = 2 147 483 648  
<center> 2 2 <center> = 4   <center> 212 <center> = 4 096   <center> 222 <center> = 4 194 304   <center> 232 <center> = 4 294 967 296  
<center> 2 3 <center> = 8   <center> 213 <center> = 8 192   <center> 223 <center> = 8 388 608   <center> 233 <center> = 8 589 934 592  
<center> 2 4 <center> = 16   <center> 214 <center> = 16 384   <center> 224 <center> = 16 777 216   <center> 234 <center> = 17 179 869 184  
<center> 2 5 <center> = 32   <center> 215 <center> = 32 768   <center> 225 <center> = 33 554 432   <center> 235 <center> = 34 359 738 368  
<center> 2 6 <center> = 64   <center> 216 <center> = 65 536   <center> 226 <center> = 67 108 864   <center> 236 <center> = 68 719 476 736  
<center> 2 7 <center> = 128   <center> 217 <center> = 131 072   <center> 227 <center> = 134 217 728   <center> 237 <center> = 137 438 953 472  
<center> 2 8 <center> = 256   <center> 218 <center> = 262 144   <center> 228 <center> = 268 435 456   <center> 238 <center> = 274 877 906 944  
<center> 2 9 <center> = 512   <center> 219 <center> = 524 288   <center> 229 <center> = 536 870 912   <center> 239 <center> = 549 755 813 888  
<center>   210   <center>   =      1 024   <center>   220   <center>   =      1 048 576   <center>   230   <center>   =      1 073 741 824   <center>   240   <center>   =      1 099 511 627 776  


Powers of two whose exponents are powers of two

Because modern memory cells and registers often hold a number of bits which is a power of two, the most frequent
powers of two to appear are those whose exponent is also a power of two.  –   A short list of some of these follows :

</table> Several of these numbers represent the number of values representable using common computer data types. For example, a 32-bit word consisting of 4 bytes can represent 232 distinct values, which can either be regarded as mere bit-patterns, or are more commonly interpreted as the unsigned numbers from 0 to 232-1, or as the range of signed numbers between -231 and 231-1.

Other recognizable powers of two

This number is the result of using the three-channel RGB system, with 8 bits for each channel, or 24 bits in total.da:Toerpotens it:Potenza di due

2 =21
4 =22
16 =24
256 =28
65 536 =216
4 294 967 296 =232
18 446 744 073 709 551 616 =264
340 282 366 920 938 463 463 374 607 431 768 211 456 =2128
   115 792 089 237 316 195 423 570 985 008 687 907 853 269 984 665 640 564 039 457 584 007 913 129 639 936   =    2256  

Navigation

  • Art and Cultures
    • Art (https://academickids.com/encyclopedia/index.php/Art)
    • Architecture (https://academickids.com/encyclopedia/index.php/Architecture)
    • Cultures (https://www.academickids.com/encyclopedia/index.php/Cultures)
    • Music (https://www.academickids.com/encyclopedia/index.php/Music)
    • Musical Instruments (http://academickids.com/encyclopedia/index.php/List_of_musical_instruments)
  • Biographies (http://www.academickids.com/encyclopedia/index.php/Biographies)
  • Clipart (http://www.academickids.com/encyclopedia/index.php/Clipart)
  • Geography (http://www.academickids.com/encyclopedia/index.php/Geography)
    • Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
    • Maps (http://www.academickids.com/encyclopedia/index.php/Maps)
    • Flags (http://www.academickids.com/encyclopedia/index.php/Flags)
    • Continents (http://www.academickids.com/encyclopedia/index.php/Continents)
  • History (http://www.academickids.com/encyclopedia/index.php/History)
    • Ancient Civilizations (http://www.academickids.com/encyclopedia/index.php/Ancient_Civilizations)
    • Industrial Revolution (http://www.academickids.com/encyclopedia/index.php/Industrial_Revolution)
    • Middle Ages (http://www.academickids.com/encyclopedia/index.php/Middle_Ages)
    • Prehistory (http://www.academickids.com/encyclopedia/index.php/Prehistory)
    • Renaissance (http://www.academickids.com/encyclopedia/index.php/Renaissance)
    • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
    • United States (http://www.academickids.com/encyclopedia/index.php/United_States)
    • Wars (http://www.academickids.com/encyclopedia/index.php/Wars)
    • World History (http://www.academickids.com/encyclopedia/index.php/History_of_the_world)
  • Human Body (http://www.academickids.com/encyclopedia/index.php/Human_Body)
  • Mathematics (http://www.academickids.com/encyclopedia/index.php/Mathematics)
  • Reference (http://www.academickids.com/encyclopedia/index.php/Reference)
  • Science (http://www.academickids.com/encyclopedia/index.php/Science)
    • Animals (http://www.academickids.com/encyclopedia/index.php/Animals)
    • Aviation (http://www.academickids.com/encyclopedia/index.php/Aviation)
    • Dinosaurs (http://www.academickids.com/encyclopedia/index.php/Dinosaurs)
    • Earth (http://www.academickids.com/encyclopedia/index.php/Earth)
    • Inventions (http://www.academickids.com/encyclopedia/index.php/Inventions)
    • Physical Science (http://www.academickids.com/encyclopedia/index.php/Physical_Science)
    • Plants (http://www.academickids.com/encyclopedia/index.php/Plants)
    • Scientists (http://www.academickids.com/encyclopedia/index.php/Scientists)
  • Social Studies (http://www.academickids.com/encyclopedia/index.php/Social_Studies)
    • Anthropology (http://www.academickids.com/encyclopedia/index.php/Anthropology)
    • Economics (http://www.academickids.com/encyclopedia/index.php/Economics)
    • Government (http://www.academickids.com/encyclopedia/index.php/Government)
    • Religion (http://www.academickids.com/encyclopedia/index.php/Religion)
    • Holidays (http://www.academickids.com/encyclopedia/index.php/Holidays)
  • Space and Astronomy
    • Solar System (http://www.academickids.com/encyclopedia/index.php/Solar_System)
    • Planets (http://www.academickids.com/encyclopedia/index.php/Planets)
  • Sports (http://www.academickids.com/encyclopedia/index.php/Sports)
  • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
  • Weather (http://www.academickids.com/encyclopedia/index.php/Weather)
  • US States (http://www.academickids.com/encyclopedia/index.php/US_States)

Information

  • Home Page (http://academickids.com/encyclopedia/index.php)
  • Contact Us (http://www.academickids.com/encyclopedia/index.php/Contactus)

  • Clip Art (http://classroomclipart.com)
Toolbox
Personal tools