Prove that [a/b]+[2a/b]+....+[(b-1)a/b]=(a-1)(b-1)/2

In summary, the problem is to prove that the sum of greatest integer functions of fractions with no common factors is equal to (a-1)(b-1)/2. The solution involves adding and subtracting terms and converting greatest integer functions to fractional parts. A useful trick is to consider the sum of the fractional parts of both n/b and (b-n)/b, which results in a sum of (b-1)/2. This method can be helpful in similar problems.
  • #1
Titan97
Gold Member
450
18

Homework Statement


Prove that $$\sum_{r=1}^{b-1}[\frac{ra}{b}]=\frac{(a-1)(b-1)}{2}$$ where [.] denotes greatest integer function and a & b have no common factors.

Homework Equations


##n\le [n]<n+1##
<x> denotes fractional part of x.

3. The Attempt at a Solution

I first added and subtracted ##a/b + 2a/b +3a/b +...+(b-1)a/b## to get:
$$\frac{a(b-1)}2-\sum_{r=1}^{b-1}<\frac{ra}{b}>$$ where <.> denotes fractional part. This way I got closer to the answer. Also, <x> is a periodic function and it would be better to convert [.] to <.>. But I am stuck at this step.
 
Physics news on Phys.org
  • #2
It can be interesting to have a look at
$$\sum_{r=1}^{b-1}<\frac{ra}{b}> + \sum_{r=1}^{b-1}<\frac{b-ra}{b}>$$
 
  • Like
Likes Titan97
  • #3
##\frac{b-ra}{b}=1-\frac{ra}{b}##.
The sum will be b-1
 
  • #4
Sure. The two sums are the same if you transform one of them, so both contribute (b-1)/2.
 
  • Like
Likes Titan97
  • #5
That solves the problem. But how did you do that post #2 magic? Did it pop in your mind when you saw the question? Or have you come across problems like these before? Is it because of practice?
 
  • #6
The sum runs over all remainders of n/b, and it does so in a symmetric way.
That trick is not so uncommon.
 
  • Like
Likes Titan97

1. Can you explain the equation, [a/b]+[2a/b]+....+[(b-1)a/b]=(a-1)(b-1)/2?

This equation is known as the "sum of consecutive terms in an arithmetic progression" and is a commonly used formula in mathematics. It states that the sum of a sequence of terms where each term is the previous term plus a constant (in this case, a/b) is equal to the number of terms multiplied by the average of the first and last terms, which is (a-1)(b-1)/2 in this case.

2. How is this equation related to fractions?

This equation is specifically related to fractions because it involves the addition of consecutive terms, each expressed as a fraction. The constant (a/b) in each term represents the common difference between the terms, making it an arithmetic progression of fractions.

3. Can you provide an example to illustrate this equation?

Sure, let's say we have the equation [1/3]+[2/3]+[3/3]+[4/3]=(1-1)(4-1)/2. To solve this, we first calculate the sum of the fractions on the left side: [1/3]+[2/3]+[3/3]+[4/3]=10/6. Then, we can plug in the numbers for (a-1) and (b-1) on the right side, which becomes (0)(3)/2 = 0. Therefore, we have proven that 10/6 = 0, which is true.

4. Is there a specific context or application for this equation?

Yes, this equation is commonly used in various mathematical and scientific fields, including statistics, physics, and engineering. It is helpful in calculating the sum of a large sequence of fractions or in finding the average value of a set of fractions.

5. What is the significance of the (a-1)(b-1)/2 term in this equation?

The (a-1)(b-1)/2 term is significant because it represents the average of the first and last terms in the sequence. It is important in determining the sum of the consecutive terms and allows for a simpler calculation compared to adding each term individually.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
7
Views
951
  • Precalculus Mathematics Homework Help
Replies
6
Views
881
  • Precalculus Mathematics Homework Help
Replies
7
Views
938
  • Precalculus Mathematics Homework Help
Replies
7
Views
391
  • Precalculus Mathematics Homework Help
Replies
7
Views
821
  • Precalculus Mathematics Homework Help
Replies
13
Views
298
  • Precalculus Mathematics Homework Help
Replies
17
Views
1K
  • Precalculus Mathematics Homework Help
Replies
2
Views
833
  • Precalculus Mathematics Homework Help
Replies
3
Views
1K
  • Precalculus Mathematics Homework Help
Replies
7
Views
1K
Back
Top