OFFSET
0,2
LINKS
PROG
(PARI) a(n)=3*n^2+sum(a=1, n, sum(b = 1, n, 2*min(b*gcd(a, b)\a, (n - a)*gcd(a, b)\b) ) ) \\ Yurii Ivanov, Jun 25 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Emlyn Corrin (emlyn(AT)corrin.name), Jan 21 2009
STATUS
approved