A357431 Triangle read by rows where each term in row n is the next greater multiple of n..1.
1, 2, 3, 3, 4, 5, 4, 6, 8, 9, 5, 8, 9, 10, 11, 6, 10, 12, 15, 16, 17, 7, 12, 15, 16, 18, 20, 21, 8, 14, 18, 20, 24, 27, 28, 29, 9, 16, 21, 24, 25, 28, 30, 32, 33, 10, 18, 24, 28, 30, 35, 36, 39, 40, 41, 11, 20, 27, 32, 35, 36, 40, 44, 45, 46, 47
Offset: 1
Examples
Triangle begins: n/k| 1 2 3 4 5 6 7 -------------------------------- 1 | 1; 2 | 2, 3; 3 | 3, 4, 5; 4 | 4, 6, 8, 9; 5 | 5, 8, 9, 10, 11; 6 | 6, 10, 12, 15, 16, 17; 7 | 7, 12, 15, 16, 18, 20, 21; ... For row n=6, the numbers of the chain, and below them their divisors are: 6 10 12 15 16 17 6 5 4 3 2 1
Links
- Neal Gersh Tolunsky, Table of n, a(n) for n = 1..9870 (first 140 rows flattened)
Programs
-
Mathematica
row[n_] := Module[{k = n, s = Table[0, n], r}, s[[1]] = n;Do[k++; k += If[(r = Mod[k, i]) == 0, 0, i - Mod[k, i]]; s[[n+1-i]] = k, {i, n - 1, 1, -1}]; s]; Array[row, 11] // Flatten (* Amiram Eldar, Sep 28 2022 *)
-
PARI
row(n) = my(v=vector(n)); v[1] = n; for (k=2, n, v[k] = v[k-1] + (n-k+1) - (v[k-1] % (n-k+1));); v; \\ Michel Marcus, Nov 16 2022
Comments