Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1 @@
isPerfect(n)=sigma(n,-1)==2

View file

@ -0,0 +1 @@
isPerfect(n)=sigma(n)==2*n

View file

@ -0,0 +1,3 @@
forprime(p=2, 2281,
if(isprime(2^p-1),
print(p"\t",(2^p-1)*2^(p-1))))

View file

@ -0,0 +1 @@
[n|n<-[1..10^4],sigma(n,-1)==2]

View file

@ -0,0 +1,9 @@
p=2;n=3;n1=2;
while(p<2281,
if(isprime(p),
s=Mod(4,n);
for(i=3,p,
s=s*s-2);
if(s==0 || p==2,
print("(2^"p"-1)2^("p"-1)=\t"n1*n"\n")));
p++; n1=n+1; n=2*n+1)