I was just playing around with dividing random numbers when I noticed that any $x\in\mathbb{N}$ when divided by an integer that is some series of $1$s, such as $34/111$, ends up being $0.\overline{9\cdot x}$, or in this case $0.\overline{306}$. This acts similar to how dividing $x$ by a series of $9$s becomes $0.\overline{x}$.
I know this isn't anything revolutionary or anything but I noticed this works in other bases as well. I wanted to extend the formula for any number $x\in\mathbb{N}$ in any base $b\ge2$ because I can't seem to find it anywhere online, and ended up coming up with this: $$\frac{x}{\sum_{i=0}^{\left\lceil \log_{b+1}(x) \right\rceil}b^i}=0.\overline{(b-1)\cdot x}$$
Since I am still a high school student who doesn't know too much advanced math, I am looking for feedback on errors/oversights I made in this identity or ideas to improve and/or make this more readable if necessary. Additionally, if this is already a known thing, I would love for someone to help me find it so I can read more into this.