PUMaC 2014 Number Theory A Problem 4

Find the sum of all positive integer x such that 3 \times 2^{x}=n^{2}-1 for some positive integer n.