made with Mathematica technology MathWorld

Least Significant Bit
DOWNLOAD Mathematica Notebook
LeastSignificantBit

The value of the 2^0 bit in a binary number. For the sequence of numbers 1, 2, 3, 4, ..., the least significant bits are therefore the alternating sequence 1, 0, 1, 0, 1, 0, ... (Sloane's A000035). It can be represented as

a(n)=1/2[1-(-1)^n]
(1)
=1/2(-1)^n[-1+(-1)^n]
(2)

or

 a(n)=n (mod 2).
(3)

It is also given by the linear recurrence equation

 a(n)=1-a(n-1)
(4)

with a(1)=1 (Wolfram 2002, p. 128).

Similarly, the "most significant bit" is the value of the 2^n bit in an n-bit representation.

SEE ALSO: Binary, Bit

REFERENCES:

Sloane, N. J. A. Sequence A000035/M0001 in "The On-Line Encyclopedia of Integer Sequences."

Whitford, A. K. "Binet's Formula Generalized." Fib. Quart. 15, 21, 24, and 29, 1977.

Wolfram, S. A New Kind of Science. Champaign, IL: Wolfram Media, p. 128, 2002.




CITE THIS AS:

Weisstein, Eric W. "Least Significant Bit." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/LeastSignificantBit.html

The Wolfram Demonstrations Project Browse Topics View Latest
JUST RELEASED: Wolfram Mathematica 7