Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Proving floor fn equation from Ramanujan

12 views
Skip to first unread message

Brad Cooper

unread,
Mar 20, 2011, 10:28:06 PM3/20/11
to
Ramanujan derived the formula

[n/3] + [(n+2)/6] + [(n+4)/6] = [n/2] + [(n+3)/6]

where [] is the floor function.

Showing this involves proving (A)

2n (mod 6) + (n+2) (mod 6) + (n+4) (mod 6)

equals

3n (mod 6) + (n+3) (mod 6) + 3 (mod 6)

Or, alternatively (B)

{2n/6} + {(n+2)/6} + {(n+4)/6}

equals

{3n/6} + {(n+3)/6} + {3/6}

where {} is the function that returns the fractional part.


It looks very tempting in either case to simply remove the brackets - they
add up!!

In either case A or B, I have not been able to come up with a proof other
than to take a series of values for n and infer the truth of the equations
by induction. This isn't very satisfying. Pawing over the graphs of
associated modulo functions hasn't revealed to me any neat relationships or
ways to legitimately combine them.

Is there a direct method?

Cheers,
Brad

In CAS notation...

modp((2*n),6) + modp((n+2),6) + modp((n+4),6);
modp((3*n),6) + modp((n+3),6) + modp(3,6);

frac((2*n)/6) + frac((n+2)/6) + frac((n+4)/6);
frac((3*n)/6) + frac((n+3)/6) + frac(3/6);


Dan Hoey

unread,
Mar 21, 2011, 4:24:28 PM3/21/11
to
On 3/20/11 10:28 PM, Brad Cooper wrote:
> Ramanujan derived the formula
>
> [n/3] + [(n+2)/6] + [(n+4)/6] = [n/2] + [(n+3)/6]
>
> where [] is the floor function.
>
>
>
> Showing this involves proving (A)
>
> 2n (mod 6) + (n+2) (mod 6) + (n+4) (mod 6)
>
> equals
>
> 3n (mod 6) + (n+3) (mod 6) + 3 (mod 6)

[remainder omitted]

I don't know where you got (A), but it is not correct.
For example, if n=4(mod 6), then
2n (mod 6) + (n+2) (mod 6) + (n+4) (mod 6) = 2+0+2,
while 3n (mod 6) + (n+3) (mod 6) + 3 (mod 6) = 4+1+3.

The straightforward way of proving this is to take
the six possibilities of n (mod 6).

n=6k or n=6k+1 => [n/3] + [(n+2)/6] + [(n+4)/6]
= 2k + k + k = 3k+k
= [n/2] + [(n+3)/6]
n=6k+2 => [n/3] + [(n+2)/6] + [(n+4)/6]
= 2k + k + k+1 = 3k+1 + k
= [n/2] + [(n+3)/6]
n=6k+3 => [n/3] + [(n+2)/6] + [(n+4)/6]
= 2k+1 + k + k+1 = 3k+1 + k+1
= [n/2] + [(n+3)/6]
n=6k+4 or n=6k+5 => [n/3] + [(n+2)/6] + [(n+4)/6]
= 2k+1 + k+1 + k+1 = 3k+2 + k+1
= [n/2] + [(n+3)/6]

Dan

Brad Cooper

unread,
Mar 21, 2011, 7:01:14 PM3/21/11
to
"Dan Hoey" <hao...@aol.com> wrote in message
news:im8c5s$ba4$1...@ra.nrl.navy.mil...

> On 3/20/11 10:28 PM, Brad Cooper wrote:
>> Ramanujan derived the formula
>>
>> [n/3] + [(n+2)/6] + [(n+4)/6] = [n/2] + [(n+3)/6]
>>
>> where [] is the floor function.
>>
>>
>>
>> Showing this involves proving (A)
>>
>> 2n (mod 6) + (n+2) (mod 6) + (n+4) (mod 6)
>>
>> equals
>>
>> 3n (mod 6) + (n+3) (mod 6) + 3 (mod 6)
>
> [remainder omitted]
>
> I don't know where you got (A), but it is not correct.
> For example, if n=4(mod 6), then
> 2n (mod 6) + (n+2) (mod 6) + (n+4) (mod 6) = 2+0+2,
> while 3n (mod 6) + (n+3) (mod 6) + 3 (mod 6) = 4+1+3.

Hi Dan,

(A) is correct. n is any positive integer, so if n = 4 then

3n (mod 6) + (n+3) (mod 6) + 3 (mod 6) = 0+1+3.


Your way of enumerating the possibilities in the original equation made up
of floor functions is direct and neat!

Thanks for that - much appreciated :-)

Cheers,
Brad

0 new messages