import math


def triangular(number):
    """ Returns True if number is triangular """
    if number == 1:
        return True
    root = round(math.sqrt(number*2))

    print(number, root)

    return root * (root+1) == 2 * number or root * (root-1) == 2 * number