255 (number)
This article needs additional citations for verification. (January 2009) |
| ||||
---|---|---|---|---|
Cardinal | two hundred fifty-five | |||
Ordinal | 255th (two hundred fifty-fifth) | |||
Factorization | 3 × 5 × 17 | |||
Greek numeral | ΣΝΕ´ | |||
Roman numeral | CCLV | |||
Binary | 111111112 | |||
Ternary | 1001103 | |||
Senary | 11036 | |||
Octal | 3778 | |||
Duodecimal | 19312 | |||
Hexadecimal | FF16 |
255 (two hundred [and] fifty-five) is the natural number following 254 and preceding 256.
In mathematics
Its factorization makes it a
Mersenne number[2] (though not a pernicious one), and the fourth such number not to be a prime number. It is a perfect totient number
, the smallest such number to be neither a power of three nor thrice a prime.
Since 255 is the product of the first three
Fermat primes, the regular 255-gon is constructible
.
In base 10, it is a self number.
255 is a repdigit in base 2 (11111111), in base 4 (3333), and in base 16 (FF).
In computing
255 is a special number in some tasks having to do with computing. This is the maximum value representable by an eight-digit
0 to 255, which is 256
total values.
For example, 255 is the maximum value of
- components in the 24-bit RGB colormodel, since each color channel is allotted eight bits;
- any dotted quad in an IPv4 address; and
- the Delphi(255 being 100% visible and 0 being fully transparent).
The use of eight bits for storage in older video games has had the consequence of it appearing as a hard limit in many video games. For example, in the original
This number could be interpreted by a computer as
−1 if a programmer is not careful about which 8-bit values are signed and unsigned, and the two's complement
representation of −1 in a signed byte is equal to that of 255 in an unsigned byte.
References
- ^ Sloane, N. J. A. (ed.). "Sequence A007304 (Sphenic numbers: products of 3 distinct primes.)". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
- ^ "PDF" (PDF). American Mathematical Society. Retrieved 12 March 2015.
- ^ Hoovler, Evan. "The History of Annoying Side-Quests in Videogames Archived 2010-04-10 at the Wayback Machine." GameSpy. 2009-12-04.
- ^ Clewett, James. "255 and Pac-Man". Numberphile. 2007-17-11.