def is_nonagonal(n): return int(n * (7 * n - 5) / 2)