def is_heteromecic(n, m=0):
    return m <= n ** 0.5 and (m * (m + 1) == n or is_heteromecic(n, m + 1))

9318ffad653587a91510cffa8ddaee2ed1ac9668
<mask token>

def is_heteromecic(n, m=0):
    return m <= n ** 0.5 and (m * (m + 1) == n or is_heteromecic(n, m + 1))
