![]() |
|
|
#2102 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
Code:
a=0;for(i=1,#mersenne,for(x=a+1,100,if(prime(x)==mersenne[i],a=x;break(),print1(x",");a=x;break()))) Last fiddled with by science_man_88 on 2010-12-22 at 14:57 |
|
|
|
|
|
#2103 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Quote:
|
|
|
|
|
|
|
#2104 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Code:
aliquot(x,y)=b=0;v=vector(y);v[1]=x;for(i=2,#v,for(a=1,i-1,if(sigma(v[i-1])-v[i-1]==0 || sigma(v[i-1])-v[i-1]==v[a],break(2),b=b+1;if(b!=a,b=0;break(2),v[i]=sigma(v[i-1])-v[i-1];b=0;break())))) |
|
|
|
|
|
#2105 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Quote:
Code:
for(x=1,100, print(aliquot(x,5))) |
|
|
|
|
|
|
#2106 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Code:
aliquot(x,y)=b=0;v=vector(y);v[1]=x;for(i=2,#v,for(a=1,i-1,if(sigma(v[i-1])-v[i-1]==0 || sigma(v[i-1])-v[i-1]==v[a],break(2),b=b+1;if(b==i-1,v[i]=sigma(v[i-1])-v[i-1];b=0;break())))) |
|
|
|
|
|
#2107 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
Code:
aliquot(x,y)=b=0;v=vector(y);v[1]=x;for(i=2,#v,for(a=1,i-1,if(sigma(v[i-1])-v[i-1]==0 || sigma(v[i-1])-v[i-1]==v[a],v=vector(i-1,n,v[n]);break(2),b=b+1;if(b==i-1,v[i]=sigma(v[i-1])-v[i-1];b=0;break())))) |
|
|
|
|
|
#2108 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
Quote:
|
|
|
|
|
|
|
#2109 |
|
"Forget I exist"
Jul 2009
Dumbassville
838410 Posts |
good news I've been testing x upto 3 million until the 4th spot in the sequence each and no x so far has made it past 3 terms that are abundant. the problem is if it decreases to another abundant number spiking it back up. Doh calculation error. redone and still accurate.
Last fiddled with by science_man_88 on 2011-01-04 at 19:44 |
|
|
|
|
|
#2110 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
done up to 7 million now without a trace of a triply ? abundant number.
|
|
|
|
|
|
#2111 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
I couldn't get the addhelp to add help I've had it working before but I just tried the autosave that lavalamp got me doing and I can't get what I want to work.
|
|
|
|
|
|
#2112 |
|
"Forget I exist"
Jul 2009
Dumbassville
203008 Posts |
Code:
(15:45)>for(x=1,400,if(((2^x)/(log(2^x)-1))-((2^x-1)/(log(2^x-1)-1))>=1,print(x))) 108 116 |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why do I sometimes see all the <> formatting commands when I quote or edit? | cheesehead | Forum Feedback | 3 | 2013-05-25 12:56 |
| Passing commands to PARI on Windows | James Heinrich | Software | 2 | 2012-05-13 19:19 |
| Ubiquity commands | Mini-Geek | Aliquot Sequences | 1 | 2009-09-22 19:33 |
| 64-bit Pari? | CRGreathouse | Software | 2 | 2009-03-13 04:22 |
| Are these commands correct? | jasong | Linux | 2 | 2007-10-18 23:40 |