밑에 풀이에서 남은 부분만 가져왔고

전체 풀이는 여기로

https://math.stackexchange.com/questions/1356164/finding-a-b-c-with-ab-c-bc-a-and-ca-b-being-powers-of-2