# Inspired by a USAJMO problem

Find the number of ordered pairs of positive integers $$(a,b)$$ such that both $$a^{3}b+2$$ and $$ab^{3}+2$$ are perfect squares.

×