number theorygreatest common divisorAMCAMC 12AMC 12 B
Problem Statement
Let a,b, and c be positive integers such that a+b+c=23 and gcd(a,b)+gcd(b,c)+gcd(c,a)=9. What is the sum of all possible distinct values of a2+b2+c2?<spanclass=′latex−bold′>(A)</span>259<spanclass=′latex−bold′>(B)</span>438<spanclass=′latex−bold′>(C)</span>516<spanclass=′latex−bold′>(D)</span>625<spanclass=′latex−bold′>(E)</span>687Proposed by djmathman