Greatest integer
The greatest integer function, denoted by ⌊x⌋ or sometimes by [x], is a mathematical function that returns the largest integer that is less than or equal to its argument x. For example, ⌊4.5⌋ = 4 and ⌊-2.7⌋ = -3. Formally, the greatest integer function is defined as follows: For any real number x, let n…