OFFSET
1,2
COMMENTS
Row n, for n >= 2, contains the multiples of (product{k=1 to n-1} p(k)) that are coprime to p(n), where p(k) is the k-th prime. The concatenated sequence is a permutation of the positive integers.
FORMULA
EXAMPLE
The beginning of the table:
1,3,5,7,9,11,...
2,4,8,10,14,16,20,...
6,12,18,24,36,...
30,60,90,120,150,...
210,420,630,840,...
MATHEMATICA
f[n_, m_] := Block[{p = Prime[n], x = Product[Prime[i], {i, n - 1}], k = 0, c = m}, While[c > 0, k += x; While[GCD[k, p] > 1, k += x]; c--; ]; k]; Table[f[d + 1 - m, m], {d, 10}, {m, d}] // Flatten (* Ray Chandler, Feb 07 2007 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Leroy Quet, Jan 31 2007
EXTENSIONS
Extended by Ray Chandler, Feb 07 2007
STATUS
approved