Prove that each odd square ends in the digit 1 in the octal system (base 8); moreover, if this digit is removed, the remaining part will represent a certain triangular number.