Hi!
For the first array you can use this:
Code:
var i=0, j=0, ar=[];
for(i=0;i<10;i++){
	for(k=0;k<2;k++){
		ar[j] = Number(String(i*11)+String(j++));
	}
}