Talk:Power of two
![]() | This article is rated Start-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||
|
![]() | The contents of the 2147483648 (number) page were merged into Power of two on 5 April 2005. For the contribution history and old versions of the redirected page, please see its history. |
This page has archives. Sections older than 365 days may be automatically archived by Lowercase sigmabot III when more than 5 sections are present. |
Powers of two whose exponents are powers of two
[edit]Because data (specifically integers) and the addresses of data are stored using the same hardware, and the data is stored in one or more octets (23), double exponentials of two are common. The first 24 of them are:
n | 2n | 22n (sequence A001146 in the OEIS) |
---|---|---|
0 | 1 | 2 |
1 | 2 | 4 |
2 | 4 | 16 |
3 | 8 | 256 |
4 | 16 | 65,536 |
5 | 32 | 4,294,967,296 |
6 | 64 | 18, |
7 | 128 | 340, |
8 | 256 | 115, |
9 | 512 | 13, |
10 | 1,024 | 179, |
11 | 2,048 | 32, |
12 | 4,096 | 1, |
13 | 8,192 | 1, |
14 | 16,384 | 1, |
15 | 32,768 | 1, |
16 | 65,536 | 2, |
17 | 131,072 | 4, |
18 | 262,144 | 16, |
19 | 524,288 | 259, |
20 | 1,048,576 | 67, |
21 | 2,097,152 | 4, |
22 | 4,194,304 | 20, |
23 | 8,388,608 | 426, |
Also see tetration and lower hyperoperations.
Last digits for powers of two whose exponents are powers of two
[edit]All of these numbers end in 6. Starting with 16 the last two digits are periodic with period 4, with the cycle 16–56–36–96–, and starting with 16 the last three digits are periodic with period 20. These patterns are generally true of any power, with respect to any base. The pattern continues where each pattern has starting point 2k, and the period is the multiplicative order of 2 modulo 5k, which is φ(5k) = 4 × 5k−1 (see Multiplicative group of integers modulo n).[citation needed]
Facts about powers of two whose exponents are powers of two
[edit]In a connection with nimbers, these numbers are often called Fermat 2-powers.
The numbers form an irrationality sequence: for every sequence of positive integers, the series
converges to an irrational number. Despite the rapid growth of this sequence, it is the slowest-growing irrationality sequence known.[1]
References
- ^ Guy, Richard K. (2004), "E24 Irrationality sequences", Unsolved problems in number theory (3rd ed.), Springer-Verlag, p. 346, ISBN 0-387-20860-7, Zbl 1058.11001, archived from the original on 2016-04-28
Powers of two whose exponents are powers of two in computer science
[edit]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. For more about representing signed numbers see two's complement. Faster328 (talk) 07:09, 13 April 2023 (UTC)
- I improved the table, seperated sections, and added colour. Faster328 (talk) 07:12, 13 April 2023 (UTC)
- Trim the table. Numbers-Mathworld (talk) 07:17, 13 April 2023 (UTC)
- You can use multiply and calculator, not use table and have infinite integer.
- Trim the table. Numbers-Mathworld (talk) 07:17, 13 April 2023 (UTC)
124.122.238.117 (talk) — Preceding undated comment added 13:54, 12 September 2023 (UTC)
Powers of 1024
[edit]The section #Powers of 1024 has the following:
- It takes approximately 17 powers of 1024 to reach 50% deviation and approximately 29 powers of 1024 to reach 100% deviation of the same powers of 1000.[citation needed]
Does this really need a citation? The calculation is very easily done:
Kuulopuhe (talk) 01:24, 17 December 2023 (UTC)
- I added this calculation in a footnote and took out the cn template. –jacobolus (t) 01:40, 17 December 2023 (UTC)
- Thank you! Kuulopuhe (talk) 00:43, 18 December 2023 (UTC)
Number of unique states in one unit of data
[edit]I recently added a note to 2^1024 that it was the range of possible states in one kibibit (kilobit), as well as a similar note for 2^8192 and one kibibyte (kilobyte). Those edits were reverted by user:David Eppstein with the following edit summary:
“gibidigibidigibidi. Nobody uses fixed-precision arithmetic with this many bits, and if they did the max value would be half what you state it is, minus one”
My edit was not talking about the max value, it said “range of possible values”. Even if it were to be misunderstood as talking about max value, there is no reason to assume that it is referring to a signed integer. I assert that it is in fact correct that one kibibit can have 2^1024 possible unique values, and one kibibyte can have 2^8192.
Regarding the comment that “Nobody uses fixed-precision arithmetic with this many bits”, it is certainly true that there are more efficient ways to store numbers. However, needless to say numbers aren't the only type of data that can be represented with binary data. Having a sense of scale for how many different states are possible at a common data size is useful.
As for the “gibidigibidigibidi”, this seems to be referring to the user's dislike of the aesthetics of the standard names for binary prefixes, which is not relevant. Pinball larry (talk) 22:32, 2 March 2024 (UTC)
- The range of possible values is an interval, not a number. Perhaps you mean "the number of distinct values"? Also, I dispute that "these are the standard names". A standards body has declared them to be the names, but very few others actually use them. —David Eppstein (talk) 22:56, 2 March 2024 (UTC)
Negative integer exponents
[edit]Is there anything in sources about negative exponents, it numbers 1/2, 1/4, 1/8...? Or shal the lede speak about nonnegative integer exponents? Is there a ref for the def? (I mean, to establish that usually nonnegative exp is meant (that is my impression, but {{citation needed}} for either way :-). - Altenmann >talk 20:41, 29 March 2024 (UTC)
- Sure, there are plenty of sources using the phrase "negative power of two". I think it would be fine to add a section about this if you feel motivated. You could start by looking at binary logarithm. –jacobolus (t) 21:34, 29 March 2024 (UTC)
- If I said simply that a number is a power of two, I think I would likely mean a non-negative exponent unless otherwise qualified. If I meant a negative-integer power I would probably say something like "inverse power of two" or "negative power of two". I definitely would not count as a power of two. But as you say, adding clarifications about this requires sourcing. —David Eppstein (talk) 21:44, 29 March 2024 (UTC)
- Sure, the numbers 1, 2, 4, 8, ... are clearly the primary focus of this article. But if we wanted to add a section called "Negative powers of two" about 1/2, 1/4, 1/8, ..., and briefly mention it in the lead section, I think it would be plausibly in scope, not particularly distracting, and potentially helpful to readers. I certainly agree with you that the number 3 doesn't seem like a "power of two". –jacobolus (t) 22:13, 29 March 2024 (UTC)
plenty of sources
-- fooled by google. Only a handgful unique hits. Anyway, I found one nontrivial.- Altenmann >talk 21:50, 29 March 2024 (UTC)- P.S. thre is also something to write about computer representations, like exact representation of decimal fractions such as 1/625, but I dont "feel motivated" enough (Must be bad weather :-). - Altenmann >talk 22:02, 29 March 2024 (UTC)
- I did a search in google scholar, which found nearly 400 examples of "negative power of two". –jacobolus (t) 22:10, 29 March 2024 (UTC)
- The part about exact computer representation really belongs under related article dyadic rational, where it is already mentioned in section "In computing". —David Eppstein (talk) 23:47, 29 March 2024 (UTC)
- The current section § Powers of two in music theory is poorly placed/organized in my opinion, and should not be an independent section. I think this article should (near the bottom) have short sections about (a) negative powers of two; (b) fractional powers of two (possibly linking to binary logarithm), which can talk about ISO 216 paper sizes, f-numbers, equally tempered semitones, etc.; (c) dyadic rationals, including music time signatures. These sections can each briefly explain their relationship to powers of two. –jacobolus (t) 03:21, 30 March 2024 (UTC)
- The part about exact computer representation really belongs under related article dyadic rational, where it is already mentioned in section "In computing". —David Eppstein (talk) 23:47, 29 March 2024 (UTC)
- If I said simply that a number is a power of two, I think I would likely mean a non-negative exponent unless otherwise qualified. If I meant a negative-integer power I would probably say something like "inverse power of two" or "negative power of two". I definitely would not count as a power of two. But as you say, adding clarifications about this requires sourcing. —David Eppstein (talk) 21:44, 29 March 2024 (UTC)
Non-negative and Zero
[edit]The first ten powers of 2 for non-negative values of n are: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, ..
I think the use of the term "non-negative" , should be hypertext ,that , when clicked on sends you to the Wikipedia page titled "Sign(mathematics)" and then to the section called , "Terminology for signs" , where an explanation of the term is given. EuclidIncarnated (talk) 17:18, 26 April 2024 (UTC)
- I partially rewrote the lead section. does that help? –jacobolus (t) 00:13, 27 April 2024 (UTC)
- Slightly , although the hyperlink takes you to the Negative number Wikipedia page whereas there exists a Wikipedia page with a direct explanation of the term "non-negative". Instead we can put "non-negative" in hypertext and when clicked take us to the "Sign(mathematics)" Wikipedia page and the part named "Terminology for signs".
- I shall make the edit now but I wanted to run it by the community first to point it out in case the edit was reverted. EuclidIncarnated (talk) 14:50, 27 April 2024 (UTC)
- I think negative number is a more useful/relevant wikilink than Sign (mathematics) § Terminology for signs to attach to the word "negative". –jacobolus (t) 15:10, 27 April 2024 (UTC)
- The negative number page talks of non-negative whole numbers being referred to as natural integers. Whereas the page Sign (mathematics) § Terminology for signs gives a direct explanation of "non-negative", which is not constricted to that of solely whole numbers. Therefore I think a general definition is more suitable than that which talks about only whole numbers. EuclidIncarnated (talk) 23:58, 27 April 2024 (UTC)
- I think negative number is a more useful/relevant wikilink than Sign (mathematics) § Terminology for signs to attach to the word "negative". –jacobolus (t) 15:10, 27 April 2024 (UTC)
Mathsmets
[edit]A@123,/123456 dhakkan nagaa
. Chetana arbon 2409:4063:4A00:A480:0:0:6C49:E008 (talk) 04:28, 26 August 2024 (UTC)