Skip to content

Lesson 5 of 5 · Floor and Fractional Part

Floor Sums: Count the Blocks

Inequalities and Modulus · for IPMAT Indore, IPMAT Rohtak and JIPMAT

Video lesson: Floor Sums: Count the Blocks

Sign in to watch · 5 min video

Worked examples

Example 5HardIndore 2023

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

Formulas you need

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.
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.

Watch out

  • The last block of a floor sum treated as complete.

How Floor and Fractional Part is asked

  • 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

Picked from the Floor and Fractional Part note for this micro-concept automatically. The whole note: Floor and Fractional Part.

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

Start free