Question

Under what conditions is \lfloor x\rfloor=\lceil x\rceil-1

Discrete math
ANSWERED
asked 2021-08-03
Under what conditions is \(\displaystyle\lfloor{x}\rfloor=\lceil{x}\rceil-{1}\)

Answers (1)

2021-08-04
Step 1
First define floor and ceiling function.
Floor function is defined as a function that takes an input x and gives the output the largest integer less than or equal to x.
Ceiling function is defined as a function that takes an input x and gives the output the smallest integer greater than or equal to x.
Now define using an example of both functions.
example of floor function:
\(\displaystyle\lfloor{2.3}\rfloor={2}\)
example of ceiling function:
\(\displaystyle\lceil{2.3}\rceil={3}\)
Step 2
Now define where the function is true or false.
First consider the case of integers.
let \(\displaystyle{x}={3}\)
\(\displaystyle\lfloor{3}\rfloor={3}\)
\(\displaystyle\lceil{3}\rceil={3}\)
but \(\displaystyle{3}\ne{q}{3}-{1}\) that is \(\displaystyle{3}\ne{q}{2}\)
so, this statement is not true for integers.
Step 3
Now consider the case of real numbers other than integers.
First take case of the positive real fraction numbers.
let \(\displaystyle{x}={2.3}\)
\(\displaystyle\lfloor{2.3}\rfloor={2}\)
\(\displaystyle\lceil{2.3}\rceil={3}\)
but \(\displaystyle{2}={3}-{1}\) that is \(\displaystyle{2}={2}\)
so, this statement is true for positive real fraction.
Step 4
Now, take case of negative real fraction numbers.
let \(\displaystyle{x}=-{2.3}\)
\(\displaystyle\lfloor-{2.3}\rfloor=-{3}\)
\(\displaystyle\lceil-{2.3}\rceil=-{2}\)
but \(\displaystyle-{3}=-{2}-{1}\) that is \(\displaystyle-{3}=-{3}\)
so, this statement is true for negative real fraction.
Step 5
So, the statement is true for all real numbers except integers. That is,
\(\displaystyle{R}-{Z}\)
0
 
Best answer

expert advice

Have a similar question?
We can deal with it in 3 hours

Relevant Questions

asked 2021-08-05

Prove or disprove \(\left\lceil\frac{x}{3}\right\rceil=\left\lfloor\frac{x+1}{3}\right\rfloor\)

asked 2021-08-08
Discrete Mathematics:
Find \(\displaystyle{\sum_{{{i}={1}}}^{{{i}={4}}}}\ {\prod_{{{j}={2}}}^{{{j}={3}}}}{\left({i}+\lceil{j}+{0.5}\rceil\right)}\)
asked 2020-10-20

Consider the quantity\(a^{2}\ -\ b^{2}\) where a and b are real numbers.
(a) Under what conditions should one expect an unusually large relative error in the computed value of \(a^{2}\ -\ b^{2}\) when this expression is evaluated in finite precision arithmetic?
(b)cWs 4-digit (decimal) rounding arithmetic to evaluate both \(a^{2}\ -\ b^{2}\ and\ (a\ +\ b)(a\ -\ b)\ with\ a\ = 995.1\ and\ b = 995.0.\) Calculate th relative error in each result.
(c) The expression \((a\ +\ b)(a\ -\ b)\ is\ algebraically\ equivalent\ to\ a^{2}\ -\ b^{2},\) but it is a more accurate way to calculate this quantity if both a and b have exact floating point representations. Why?

asked 2021-06-19
When two targets are presented close together in a rapid visual stream, the second target is often missed. Psychologists call this phenomenon the attentional blink (AB). A study published in Advances in Cognitive Psychology (July 2013) investigated whether simultaneous or preceding sounds could reduce AB. Twenty subjects were presented a rapid visual stream of symbols and letters on a computer screen and asked to identify the first and second letters (the targets). After several trials, the subject's AB magnitude was measured as the difference between the percentages of first target and second target letters correctly identified. Each subject performed the task under each of three conditions. In the Simultaneous condition, a sound (tone) was presented simultaneously with the second target; in the Alert condition, a sound was presented prior to the coming of the second target; and in the No-Tone condition, no sound was presented with the second target. Scatterplots of AB magnitude for each possible pair of conditions are shown below as well as the least squares line for each. a. Which pair of conditions produces the least squares line with the steepest estimated slope? b. Which pair of conditions produces the least squares line with the largest SSE? c. Which pair of conditions produces the least squares line with the smallest estímate of σ?
...