I have a function $f(z) = \sqrt{(2z^2+1)^2+ 2^2 z(102z^2+151z+51)} $
I know it has some solutions where if $z$ and $f(z)$ is an integer, but are there infinitely many? or maybe is there some $z = f(c)$ such that $f(z)$ is always an integer?
My initially try was to try and set the function under the radical equal to a Pythagorean triple, but Im struggleing.
So yeh any ideas? (also I know there are solutions for $z = 0, 1, 12, 62412,$ and maybe $124887$ (I think my Matlab program was rounding incorrectly for this last one) but then I couldn't find any more solutions
Your $z = 62412$ is incorrect.
Taking your $$ g(z) = 4z^4 + 408z^3 + 608z^2 + 204z + 1, $$ we get $$ g(z) = ( 2 z^2 + 102 z - 2449 )^2 + 499800z - 5997600 = ( 2 z^2 + 102 z - 2449 )^2 + 499800(z -12) . $$ Also $$ g(z) = ( 2 z^2 + 102 z - 2448 )^2 - (4z^2 - 499596z + 5992703) $$
As a result, for $$ z \geq 124888, $$ we have $$ ( 2 z^2 + 102 z - 2449 )^2 < g(z) < ( 2 z^2 + 102 z - 2448 )^2 $$ so $g(z)$ cannot be a square for integer $z \geq 124888$