Some sum of gcd

Let R(a, b) = (gcd(1, a) + gcd(2, a) + gcd(3, a)... + gcd(b, a))/b

find R(6, 2304)

Hint:

R(6, 2082) = R(6, 1152)


The answer is 2.5.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

The value of g c d ( 6 , b ) gcd(6,b) repeates periodically with a period 6 6 , the values obtained in each cycle are 1 , 2 , 3 , 2 , 1 , 6 1,2,3,2,1,6 , whose sum is 15 15 .

In R ( 6 , 2304 ) R(6,2304) , there are 2304 6 \frac{2304}{6} or 384 384 cycles,

whose total sum is 15 × 384 15\times 384 or 5760 5760 .

So, R ( 6 , 2304 ) = 5760 2304 = 2.5 R(6,2304)=\dfrac {5760}{2304}=\boxed {2.5} .

In fact, the value of R ( 6 , 6 b ) R(6,6b) is always 15 6 = 2.5 \frac{15}{6}=\boxed {2.5} .

Your last statement is only true when b b is a multiple of 6 6 - R ( 6 , 7 ) = 16 7 R(6,7) = \tfrac{16}{7} , for example.

Mark Hennings - 8 months, 3 weeks ago

Log in to reply

Yes. You're right. Editing.

A Former Brilliant Member - 8 months, 3 weeks ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...