Difference between revisions of "Floor function"
(expand) |
m |
||
Line 1: | Line 1: | ||
The greatest integer function, also known as the '''floor function''', gives the greatest integer less than or equal to its argument. The floor of <math>x</math> is usually denoted by <math>\lfloor x \rfloor</math> or <math>[x]</math>. The action of this function is the same as "rounding down." On a [[positive]] argument, this function is the same as "dropping everything after the decimal point," but this is ''not'' true for negative values. | The greatest integer function, also known as the '''floor function''', gives the greatest integer less than or equal to its argument. The floor of <math>x</math> is usually denoted by <math>\lfloor x \rfloor</math> or <math>[x]</math>. The action of this function is the same as "rounding down." On a [[positive]] argument, this function is the same as "dropping everything after the decimal point," but this is ''not'' true for negative values. | ||
+ | |||
+ | == Properties == | ||
+ | * <math>[a+b]\ge [a]+[b]</math> for all real <math>(a,b)</math>. | ||
+ | * [[Hermite's Identity]]: <cmath>\left[a\right]+\left[a+\frac{1}{n}\right]+\ldots+\left[a+\frac{n-1}{n}\right] = [na]</cmath> | ||
+ | |||
==Examples== | ==Examples== | ||
Line 17: | Line 22: | ||
where <math>\{x\}</math> is the fractional part of <math>x</math>. | where <math>\{x\}</math> is the fractional part of <math>x</math>. | ||
+ | |||
+ | == Olympiad Problems == | ||
+ | * [1981 USAMO #5] If <math>x</math> is a positive real number, and <math>n</math> is a positive integer, prove that | ||
+ | <cmath>[nx] > \frac{[x]}{1} + \frac{[2x]}{2} + \frac{[3x]}{3} + ... + \frac{[nx]}{n},</cmath> | ||
+ | where <math>[t]</math> denotes the greatest integer less than or equal to <math>t</math>. | ||
+ | |||
+ | [http://www.mathlinks.ro/viewtopic.php?t=174312 AoPS discussion 1] | ||
+ | |||
+ | [http://www.mathlinks.ro/viewtopic.php?t=101711 AoPS discussion 2] | ||
+ | |||
+ | * [1968 IMO #6] Let <math>[x]</math> denote the integer part of <math>x</math>, i.e., the greatest integer not exceeding <math>x</math>. If <math>n</math> is a positive integer, express as a simple function of <math>n</math> the sum <cmath>\left[\frac{n+1}{2}\right]+\left[\frac{n+2}{4}\right]+...+\left[\frac{n+2^k}{2^{k+1}}\right]+\ldots</cmath> | ||
+ | |||
==See Also== | ==See Also== | ||
*[[Ceiling function]] | *[[Ceiling function]] |
Revision as of 21:15, 9 March 2009
The greatest integer function, also known as the floor function, gives the greatest integer less than or equal to its argument. The floor of is usually denoted by
or
. The action of this function is the same as "rounding down." On a positive argument, this function is the same as "dropping everything after the decimal point," but this is not true for negative values.
Properties
for all real
.
- Hermite's Identity:
Examples
A useful way to use the floor function is to write , where y is an integer and k is the leftover stuff after the decimal point. This can greatly simplify many problems.
Alternate Definition
Another common definition of the floor function is
where is the fractional part of
.
Olympiad Problems
- [1981 USAMO #5] If
is a positive real number, and
is a positive integer, prove that
where
denotes the greatest integer less than or equal to
.
- [1968 IMO #6] Let
denote the integer part of
, i.e., the greatest integer not exceeding
. If
is a positive integer, express as a simple function of
the sum