I invented this algoritm a while back. It allows you to perform arithmetic operations ( add, subtract) on any hierarchical address scheme.
IP example: 18.104.22.168 + 257 = 22.214.171.124
Generic example: For a scheme: a[1-2]/b[3-4]/c[5-6]: a1/b3/c6 + 3 = a2/b3/c5
A hierarchical address (HA) or multi-level address is a logical address divided into levels in left to right order of significance. IP address 126.96.36.199 and Termination ID tdm/3/28/24 (RFC 3525) are examples of hierarchical address.
Hierarchical Address can also be in binary form by using hierarchical address table to define level/significance.