Hugh R.

asked • 06/12/25

Find the sum of floor function values

For positive integers a, b, show that the sum

m=1[a/2][bm/a] + ∑n=1[b/2][an/b] = [a/2][b/2] + [(a,b)/2].

where the bracket denotes the floor function, i.e. [x] is the greatest integer not exceeding x, and (a,b) is the greatest common divisor of a, b. The first summation runs from 1 to [a/2], the second from 1 to [b/2].

1 Expert Answer

By:

Huaizhong R.

tutor
My negligence! Just modified the proof, which works with no issues, I suppose.
Report

06/18/25

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.