Method 1
You can use this formula:
={INDEX(TRANSPOSE(ARRAYFORMULA(SPLIT(REPT(A1:A6,B1)," "))),0,1);INDEX(TRANSPOSE(ARRAYFORMULA(SPLIT(REPT(A1:A6,B1)," "))),0,2);INDEX(TRANSPOSE(ARRAYFORMULA(SPLIT(REPT(A1:A6,B1)," "))),0,3);INDEX(TRANSPOSE(ARRAYFORMULA(SPLIT(REPT(A1:A6,B1)," "))),0,4);INDEX(TRANSPOSE(ARRAYFORMULA(SPLIT(REPT(A1:A6,B1)," "))),0,5);INDEX(TRANSPOSE(ARRAYFORMULA(SPLIT(REPT(A1:A6,B1)," "))),0,6)}
This one makes use of the below formulas:
REPT
for repeating the data B1
times;
SPLIT
for splitting the data;
TRANSPOSE
for transposing the resulting rows;
INDEX
for merging the resulting columns into a single one;
Note
A blank space has been added after each name in order to make splitting easier and more convenient.
After the formula is being applied, this is how it will look like:

Method 2
You can make use of Apps Script - Apps Script is a powerful development platform which can be used to build web apps and automate tasks. What makes it special is the fact that it is easy to use and to create applications that integrate with G Suite.
Therefore, your task can be accomplished by using this script:
function multiplyValues() {
var ss = SpreadsheetApp.openById("ID_OF_THE_SPREADSHEET").getSheetByName("SHEET_NAME");
var rangeVals = ss.getRange("A1:A6");
var nameValues = rangeVals.getValues();
var multValue = ss.getRange("B1").getValue();
var arrayVals = [];
for (var i = 0; i < nameValues.length; i++)
for (var j = 1; j <= multValue; j++)
arrayVals.push(nameValues[i][0]);
for (var i = 0; i < arrayVals.length; i++)
ss.getRange(i+1, 4).setValue(arrayVals[i]);
}
Explanation
The above script is bulding the array by multiplying each value with the value from the B1
cell and afterwards is pasting its contents on the 4th column. In order to get the values the getRange
and getValues
methods have been used and to paste the new array in the column the setValue
has been used.

Reference
I also recommend you to take a look at the links below since they might be of help to you.