For integers $a,b,c$ and $d,$ let $f(x)=x^2+ax+b$ and $g(x)=x^2+cx+d.$ Find the number of ordered triples $(a,b,c)$ of integers with absolute values not exceeding $10$ for which there is an integer $d$ such that $g(f(2))=g(f(4))=0.$
$f(2)=4+2a+b$ and $f(4)=16+4a+b$ must be roots of $g$.
If $f(2)=f(4)$, i.e.\ $a=-6$, then any $b,c$ work (choose $d$): $21\cdot21=441$ triples.
Otherwise $c=-(f(2)+f(4))=-(20+6a+2b)$, which needs $-15\le3a+b\le-5$. Counting pairs with $a\ne-6$, $a=-8,-7$ give $2+5$; $a=-5,\dots,-2$ give $11$ each; $a=-1,0,1$ give $9+6+3$. That is $69$.
For integers $a,b,c$ and $d,$ let $f(x)=x^2+ax+b$ and $g(x)=x^2+cx+d.$ Find the number of ordered triples $(a,b,c)$ of integers with absolute values not exceeding $12$ for which there is an integer $d$ such that $g(f(1))=g(f(3))=0.$