Power of two

本文探讨了幂次2在计算机科学中的重要性,特别是在二进制系统中,其形式为100…000或0.00…001。介绍了从1到1024的2的幂次可视化,并提及它们在音乐理论中的应用。同时,提到了Mersenne和Fermat素数与幂次的关系。
摘要由CSDN通过智能技术生成

A power of two is a number of the form 2n where n is an integer, that is, the result of exponentiation with number two as the base and integer n as the exponent.

In a context where only integers are considered, n is restricted to non-negative values,[1] so there are 1, 2, and 2 multiplied by itself a certain number of times.[2]

The first ten powers of 2 for non-negative values of n are:

1, 2, 4, 8, 16, 32, 64, 128, 256, 512, … (sequence A000079 in the OEIS)
Because two is the base of the binary numeral system, powers of two are common in computer science. Written in binary, a power of two always has the form 100…000 or 0.00…001, just like a power of 10 in the decimal system.

在这里插入图片描述

Visualization of powers of two from 1 to 1024 (20 to 210)

Contents
1 Computer science
2 Mersenne and Fermat primes
3 Euclid’s Elements, Book IX
4 Table of values
5 Powers of 1024
6 Powers of two whose exponents are powers of two
7 Selected powers of two
8 Other properties
9 Powers of two in music theory
10 See also

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值