Treating 4x as one term, we can write
16x2+8x+1=(4x)2+24x+1
and since y2+2y+1=(y+1)2 we obtain
(4x)2+24x+1=(4x+1)2