Simplify hexagon_numbers function by bettter using generators.