Build an integral tangle as a nested sum of ±1 and 0.
For |n| ≤ 1 returns the integer directly. Otherwise returns
TangleSum(±1, integral(n∓1)) recursively.
- Parameters:
n (int) – Integer tangle value.
- Returns:
int | TangleExpr – The expression representing the integral tangle.