If you’re looking for a helpful paper on this topic, here’s a well-cited and accessible one: “A Binary Interstellar Beacon”
Michael Hippke (Sonneberg Observatory)
It sounds like you're referring to the concept of — most famously the Arecibo Message (1974) or proposals like Binary interstellar beacons from SETI research.