Skip to content

Floor and Fractional Part

6 lessons · 14 questions · 2 PYQs · ~75 s per question

The idea

Every real number splits into an integer part [x][x] (the greatest integer not exceeding xx) and a fractional part {x}=x−[x]\{x\}=x-[x] in [0,1)[0,1). Floor problems are solved by naming these two parts and using the single condition 0≤{x}<10\le\{x\}<1.

Textbook vs exam method

Exam method

  1. Small-case check. in parametric answers (nn), put n=1n=1 or 22 and compare options.
  2. Blocks. [k][\sqrt{k}] is constant on j2≤k<(j+1)2j^2\le k<(j+1)^2; [k/m][k/m] on runs of length mm.
  3. Negative numbers. [−2.7]=−3[-2.7]=-3, not −2-2.

Worked examples

Example 1Sitter

[x][x]

Example 2Sitter

[−2.7]+[2.7][-2.7]+[2.7]

Example 3Easy

[x]2−5[x]+6=0[x]^2-5[x]+6=0

Example 4Easy

2x+3[x]=16.42x+3[x]=16.4

Example 5HardIndore 2023

2[x]=x+n{x}2[x]=x+n\{x\}

Traps

  • [x]=k[x]=k read as x=kx=k; {x}=1\{x\}=1 allowed; x=0x=0 forgotten.
  • The last block of a floor sum treated as complete.

Formulas

Integer part and fractional part

x=[x]+{x},[x]∈Z, 0≤{x}<1x=[x]+\{x\},\qquad [x]\in\mathbb{Z},\ 0\le\{x\}<1

Write x = k + f with k an integer and 0 <= f < 1, solve for f, keep the k that give 0 <= f < 1 (Indore 2023 Q27).
Undoing the floor

[x]=k  ⟺  k≤x<k+1[x]=k\iff k\le x<k+1

Solve for the integer [x] first (e.g. a quadratic in [x]), then convert each value into an interval of x.
Shifting by an integer

[x+n]=[x]+n (n∈Z),[x]+[−x]={0,x∈Z−1,otherwise[x+n]=[x]+n\ (n\in\mathbb{Z}),\qquad [x]+[-x]=\begin{cases}0,&x\in\mathbb{Z}\\-1,&\text{otherwise}\end{cases}

The floor of a negative non-integer moves away from 0: [-2.7] = -3.
Sum of floor of square roots

∑k=1(m+1)2−1[k]=∑j=1mj(2j+1)\sum_{k=1}^{(m+1)^2-1}[\sqrt{k}]=\sum_{j=1}^{m}j(2j+1)

The value j occurs 2j + 1 times; handle the last, possibly incomplete, block separately.
Blocks of floor of k over m

[km]=j for mj≤k≤mj+m−1\left[\tfrac{k}{m}\right]=j\ \text{for}\ mj\le k\le mj+m-1

Each value appears m times; the first block (value 0) contributes nothing.

In the exam

Shortcuts
  • a[x]=x+b{x}a[x]=x+b\{x\} type: substitute x=k+fx=k+f; the condition 0≤f<10\le f<1 fixes the possible kk.
  • Quadratic in [x][x]: roots r1≤r2r_1\le r_2 of the integer quadratic give x∈[r1,r2+1)x\in[r_1,r_2+1) for ≤0\le0.
  • Floor sums: group equal values into blocks and multiply value by block length.
~75 s per question at exam speed
When to skip: Parametric floor equations (sum in terms of n) take about 2 minutes; check a small case such as n = 1 against the options first.

Before this

What the exams ask here

  • sum of solutions of [x] + {x} relation
  • count solutions
  • 2[x] = x + n{x}: sum of solutions (Indore 2023 Q27)
  • [x]^2 - 5[x] + 6 < 0 -> range of x
  • sum of [sqrt k] for k = 1..n

Practise this free. Every mistake is saved and comes back until you fix it.

Start free