def is_tandem(seq):
    """Check if `seq` is tandemly repetitive or not, assuming it is error-free."""
    L = len(seq)
    for i in range(1, int(L / 2) + 1):
        if L % i != 0:
            continue
        if seq == seq[:i] * int(L / i):
            return True
    return False