Function to repeat number N times I am not a math person, but is it possible to repeat one number N times without programming langs or programs? If yes, which type of function can I use to do it? For example: number 2 repeat 3 times and get 222?

How about this function:
$$f(x,n)=10^{n-1} \times x + 10^{n-2} \times x + 10^{n-3} \times x +...+ 10^{2} \times x + 10^1 \times x + 10^0 \times x$$ i.e.
$$f(x,n)=\left(\frac{10^n-1}{9}\right)\cdot x$$ Where $x$ is the digit you want to repeat and $n$ is the number of times you want to repeat.
Note: This formula is valid for $1\le x\le 9$.
