Aliquot sequence classifications: Difference between revisions

m
Line 784:
if length(s)=1 then return {"perfect",s}
elsif length(s)=2 then return {"amicable",s}
else end if return {"sociable",s}
end if
elsif k=length(s) then return {"aspiring",s}
else end if return {"cyclic",append(s,{n})}
end if
elsif n=0 then return {"terminating",s}
else
s = append(s,n)
end if
s = end ifappend(s,n)
end while
return {"non-terminating",s}
Line 829 ⟶ 826:
790 {"aspiring",{790,650,652,496}}
909 {"aspiring",{909,417,143,25,6}}
562 {"cyclic",{562,284,220,{284}}}
1064 {"cyclic",{1064,1336,1184,1210,{1184}}}
1488 {"non-terminating",{1488,2480,3472,4464,8432,9424,10416,21328,22320,55056,95728,96720,236592,459792,881392,882384}}
15355717786080 {"non-terminating",{1.5355717787e+13,4.4534663602e+13,1.4494008747e+14}}
7,813

edits