Looking at Yang Hui's triangle we can see notations like:
These are known as: counting rods.
Were/are these ever treated at actual characters?
The two pictures above should stand for six and seven, respectively. It is not hard to imagine that they were once some form of 字.