If you have the functions,
Formula: copy to clipboard
=TRANSPOSE(TEXTSPLIT(LEFT(TEXTJOIN(",",,,REPT(A2&",",A1)),A1*2-1),","))


Put the repeat value in A1 and the value to be repeated in A2 (single digits only)