OFFSET
1,2
COMMENTS
a(n) is the largest k <= sigma(n) such that (-n + k) and (n-sigma(n))+k are coprime.
LINKS
FORMULA
PROG
(PARI) A325818(n) = { my(s=sigma(n)); for(i=0, s, if(1==gcd(n-i, n-(s-i)), return(s-i))); };
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 29 2019
STATUS
approved