The octal or short octal number system is a base-8 number system and uses digits from 0 to 7.
Octal digits can be made from binary numbers by grouping consecutive binary digits into groups of three (starting from the right).
For example, the binary representation for decimal code 74 is 1001010. Two zeros can be added on the left: (00) 1 001 010, which corresponds to the octal digits 1 1 2, which gives an octal representation 112.
In your question $i = 016; computed by the interpreter and returns $i = 14; (which is the decimal number of equidistant)
Then you just divide it by 2, which yields 7.
source share