Clear Notion Academy

Sets, Relations and Functions (Beyond Advanced) Practice: Evaluate k=1 99 98k 100 .

Question

Evaluate ∑k=199⌊98k100⌋\displaystyle\sum_{k=1}^{99}\left\lfloor\frac{98k}{100}\right\rfloor.

Answer

Answer: 4802

Hint

Pair the term kk with the term 100−k100-k and look at what the two fractional parts add up to. Take care when 98k100\frac{98k}{100} is an integer.

Solution

Write ⌊98k100⌋+⌊98(100−k)100⌋=⌊98k100⌋+98+⌊−98k100⌋\left\lfloor\dfrac{98k}{100}\right\rfloor+\left\lfloor\dfrac{98(100-k)}{100}\right\rfloor=\left\lfloor\dfrac{98k}{100}\right\rfloor+98+\left\lfloor-\dfrac{98k}{100}\right\rfloor. For real yy, ⌊y⌋+⌊−y⌋=−1\lfloor y\rfloor+\lfloor -y\rfloor=-1 unless yy is an integer, when it is 00. Here y=98k100=49k50y=\dfrac{98k}{100}=\dfrac{49k}{50} is an integer iff 50∣k50\mid k, i.e. only for k=50k=50 (in 1≤k≤991\le k\le99). Adding the terms for kk and 100−k100-k and summing over all kk counts every term twice, so 2S=∑k=199(98+ek)2S=\sum_{k=1}^{99}\big(98+e_k\big) where ek=−1e_k=-1 for k≠50k\ne50 and e50=0e_{50}=0. Hence 2S=99⋅98−98=96042S=99\cdot98-98=9604 and S=4802S=4802. (For coprime numbers p,qp,q the sum would be (p−1)(q−1)2\tfrac{(p-1)(q-1)}2; here gcd⁡(98,100)=2\gcd(98,100)=2 adds the extra gcd⁡−12\tfrac{\gcd-1}{2} correction: 99⋅97+12=4802\tfrac{99\cdot97+1}2=4802.)

More questions from Sets, Relations and Functions (Beyond Advanced) Practice

Practise the full set: Sets, Relations and Functions — Beyond Advanced