Page 1 of 1 [ 10 posts ] 

ruveyn
Veteran
Veteran

User avatar

Joined: 21 Sep 2008
Age: 89
Gender: Male
Posts: 31,502
Location: New Jersey

04 Oct 2011, 7:41 pm

A function T maps integers to integers.

Definition of T:
T(n) = n/2 if n is even
T(n) = (3n + 1)/2 if n is odd.

Collatz problem: Given any starting integer N if one keeps apply the function T to the result one eventually ends up with 1. T(N). T(T(N)) etc eventually gets to 1. Regardless of N.

A ten year old keep could understand this, but showing that T eventually produces 1 regardless of the starting numbers has eluded mathematicians for about 70 years. Pault Erdos once said that mathematicians are not yet ready to solve the Collatz problem.

ruveyn



Jadefire
Hummingbird
Hummingbird

User avatar

Joined: 16 May 2011
Age: 33
Gender: Male
Posts: 18
Location: South Jordan, Utah

04 Oct 2011, 7:57 pm

Ow, my brain.

So, if I understand that correctly, no matter what number you have as N, if you plug it into either of those functions enough times, you eventually end up with 1? Interesting.



Comp_Geek_573
Veteran
Veteran

User avatar

Joined: 27 Sep 2011
Age: 41
Gender: Male
Posts: 699

05 Oct 2011, 2:37 am

It's really one function, defined piecewise. Take n. If it is even, T(n) = n/2. If it is odd, T(n) = (3n+1)/2.

A function that is simply T(n) = n/2 is a different beast. Any n not a power of 2 would not go to 1.

But yes, with the function the OP gave, every n tried so far has gone to 1. But nobody has yet proven that all n goes to 1.



Cornflake
Administrator
Administrator

User avatar

Joined: 30 Oct 2010
Gender: Male
Posts: 73,326
Location: Over there

05 Oct 2011, 6:00 am

ruveyn wrote:
A function T maps integers to integers.

Definition of T:
T(n) = n/2 if n is even
T(n) = (3n + 1)/2 if n is odd.
That should be T(n) = 3n + 1 if n is odd.

Interesting, though.


_________________
Giraffe: a ruminant with a view.


ruveyn
Veteran
Veteran

User avatar

Joined: 21 Sep 2008
Age: 89
Gender: Male
Posts: 31,502
Location: New Jersey

05 Oct 2011, 11:02 am

Cornflake wrote:
ruveyn wrote:
A function T maps integers to integers.

Definition of T:
T(n) = n/2 if n is even
T(n) = (3n + 1)/2 if n is odd.


That should be T(n) = 3n + 1 if n is odd.

Interesting, though.


It does not matter. Once the odd n is transformed to 3n + 1, the next step is to divide it by 2.

ruveyn



Last edited by ruveyn on 05 Oct 2011, 6:23 pm, edited 1 time in total.

Cornflake
Administrator
Administrator

User avatar

Joined: 30 Oct 2010
Gender: Male
Posts: 73,326
Location: Over there

05 Oct 2011, 12:12 pm

Slightly modified for a parity sequence, as I understand it - because when n is odd, 3n + 1 is always even.
The Hailstone parity sequence for every number then eventually enters the cycle 0 - 1 - 0.
The basic function is just 'HOPTO' - Half Or Triple Plus One, with the Hailstone sequence eventually reaching 4 - 2 - 1.


_________________
Giraffe: a ruminant with a view.


Burzum
Veteran
Veteran

User avatar

Joined: 26 Apr 2011
Age: 34
Gender: Male
Posts: 1,205

05 Oct 2011, 2:28 pm

Even if they solved it, what could they possibly use the solution for? Does it have any application?



Cornflake
Administrator
Administrator

User avatar

Joined: 30 Oct 2010
Gender: Male
Posts: 73,326
Location: Over there

05 Oct 2011, 3:24 pm

Sometimes the journey is more useful or more interesting than the destination.
It's fascinating just because it is. Makes one ask "Huh? How come?" - like a crab canon: http://strangepaths.com/canon-1-a-2/2009/01/18/en/


_________________
Giraffe: a ruminant with a view.


mglosenger
Velociraptor
Velociraptor

User avatar

Joined: 19 Aug 2011
Age: 153
Gender: Male
Posts: 445

05 Oct 2011, 3:41 pm

Burzum wrote:
Even if they solved it, what could they possibly use the solution for? Does it have any application?


Many 'pure math' problems have turned out to have real world applications.



Sunshine7
Sea Gull
Sea Gull

User avatar

Joined: 11 Nov 2011
Gender: Male
Posts: 218

18 Nov 2011, 9:03 am

Quote:
It does not matter. Once the odd n is transformed to 3n + 1, the next step is to divide it by 2.


It doesn't matter to a human being. It matters to a machine.