We must have 1+12n2 = p2 where p is odd.
p2 - 1 = 12n2 or (p-1)(p+1) = 12n2.
If p = 2k+1 then k(k+1) = 3n2.
Now, either k or k+1 must be divisible by 3.
Lets say k+1 is div by 3. Then k = 3m-1 where m

Z.
Then m(3m-1) = n2. Now gcd(m,3m-1) = 1
Hence, m and 3m-1 are themselves perfect squares. But we know that any perfect square is of the form 3t or 3t+1.
Hence 3m-1 cannot be a perfect square and our assumption that k+1 is div by 3 is wrong.
This means k is div by 3 i.e k = 3m
Then m(3m+1) = n2
and again since gcd(m,3m+1) = 1, we must have m = s12 and 3m+1 = s22
Hence, sqrt(1+12n2) = p = 2k+1 = 6m+1 = 6s12+1
Hence 2(1+p) = 2(6s12+2) = 4(3s12+1) = 4(3m+1) = 4s22 = a perfect square.