Learn about Aliquot sequences here.
Mikael Klasson has developed a program to automate the computation of Aliquot sequences. If desired, it can use YAFU as an engine for factorization of terms in the sequence. His page is here. There are a couple attachments on this page that mirror the source code and executables that Mikael produces... check his page for the most current version. Linux v1.12 binaries provided courtesy of Dubslow from mersenneforum.