A Distant Galaxy Is Flaring With Strange Regularity, And Scientists Have Figured Out Why