My Math Forum  

Go Back   My Math Forum > College Math Forum > Number Theory

Number Theory Number Theory Math Forum


Reply
 
LinkBack Thread Tools Display Modes
June 19th, 2009, 10:25 AM   #31
Global Moderator
 
CRGreathouse's Avatar
 
Joined: Nov 2006
From: UTC -5

Posts: 16,046
Thanks: 938

Math Focus: Number theory, computational mathematics, combinatorics, FOM, symbolic logic, TCS, algorithms
Re: Strange observation with primes

Quote:
Originally Posted by kaushiks.nitt
I am sorry generating those few numbers don't appear that trivial .
Okay...? I don't know if you're ceding that your conjecture doesn't work out or claiming that it does.

I gave the code that generates that list. Even on a 10-year-old computer you should be able to generate it in seconds.

Here's improved code, by the way. My computer can get the 39,841 solutions of 55 iterations in about 10 seconds with it.
Code:
odd(v)=my(vv=[]);for(i=1,#v,if(v[i]%2,vv=concat(vv,v[i])));vv
step(vu)={my(v=vu[1],u=vu[2],uu=vector(#u,i,u[i]*2),t);for(i=1,#u,if(u[i]%3==2,t=(2*u[i]-1)/3;if(!isprime(t),uu=concat(uu,t))));[vecsort(concat(v,odd(u)),,8),vecsort(uu,,8)]}
go(n)=my(vu=[[],[5]]);for(i=1,n,vu=step(vu));vecsort(concat(vu[1],vu[2]),,8)
v=go(55);#v
CRGreathouse is offline  
 
June 19th, 2009, 07:26 PM   #32
Senior Member
 
Joined: Dec 2008

Posts: 206
Thanks: 0

Re: Strange observation with primes

I am saying that the conjecture doesn't work and collatz has to be proved for all numbers just like the way it has been stated in the conjecture.
Anyway thanks for the code.
Cheers !!!
kaushiks.nitt is offline  
Reply

  My Math Forum > College Math Forum > Number Theory

Tags
observation, primes, strange



Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mersenne Prime - Interesting Observation curioso Number Theory 4 January 31st, 2014 06:59 PM
Means of Observation jasonjason Computer Science 0 July 26th, 2013 01:47 AM
An Observation . . . soroban New Users 3 September 10th, 2012 12:50 PM
Mathematical explanation to statistical observation zengjinlian Advanced Statistics 1 September 7th, 2012 06:59 PM
Mathematical Observation MyNameIsVu Applied Math 9 July 17th, 2009 10:08 PM





Copyright © 2019 My Math Forum. All rights reserved.