There exist various tools to compute the density of a set, one of the main tools is the local to global principle [1]}, [2]} by Poonen and Stoll, which allows to compute the density of certain sets by characterizing these sets over the \(p\) -adic integers.
