What exactly do you mean by "non-algebraic pattern"? The reason why your pattern works isn't very amazing - it just comes straight out of the way we multiply numbers.
Suppose is a three-digit number, with digits . Then, . But then, adding these up, we have , which is the pattern you describe (after carrying over, if necessary).