def decimalTobinary(n):
    """Convert a decimal number to binary"""
    
    assert int(n) == n, 'input number must be integer'
    if n == 0:
        return 0
    else:
        return n%2 + 10 * decimalTobinary(int(n/2))