![]() |
![]() |
#34 |
"Forget I exist"
Jul 2009
Dartmouth NS
20E216 Posts |
![]()
okay it's not as good as I thought but I can explain it using sets:
basically when trying to find (sigma(x*y)-x*y) using (sigma(x)-x) it depends on sigma(y) and the intersection of 2*divsors(x) and divisors(x): 6=[1,2,3,6] for y = 2 adds on to [2,4,6,12] which have intersection [2,6] 3*(sigma(6)-6) +6 - (2+6) = 24-8 = 16 since odd numbers don't have even divisors this problem for y=2 only shows up in even number x , other y may create problems in the odd numbered x. 12=[1,2,3,4,6,12] Code:
sigma2(n,d)=sum(x=1,#divisors(n),sigma(d)*divisors(n)[x])-sum(y=1,#intersection(divisors(n),divisors(n)*d),intersection(divisors(n),divisors(n)*d)[y])-d*n Code:
intersection(x,y,pretty)=C=[];for(i=1,#x,for(j=1,#y,if(x[i]==y[j],C=concat(C,x[i]))));if(pretty!=0,printVectorAsSet(vecsort(C,,8)),vecsort(C,,8)) Last fiddled with by science_man_88 on 2012-06-10 at 18:24 |
![]() |
![]() |
![]() |
#35 | |
"Forget I exist"
Jul 2009
Dartmouth NS
100000111000102 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Broken aliquot sequences | fivemack | FactorDB | 46 | 2021-02-21 10:46 |
Broken aliquot sequences | schickel | FactorDB | 18 | 2013-06-12 16:09 |
poaching aliquot sequences... | Andi47 | FactorDB | 21 | 2011-12-29 21:11 |
Asymptotic properties of Aliquot sequences | Lothar | Homework Help | 1 | 2011-03-29 09:23 |
New article on aliquot sequences | schickel | mersennewiki | 0 | 2008-12-30 07:07 |