[math-fun] Ulam gaps and term frequency