OFFSET
1,3
LINKS
Seiichi Manyama, Antidiagonals n = 1..25, flattened
EXAMPLE
In case of (n,k) = (3,2):
| 1 2 3
--+--------
1 | 1, 2, 3
2 | 2, 4, 6
3 | 3, 6, 9
Distinct products are 1,2,3,4,6,9. So A(3,2) = 6.
Square array begins:
1, 1, 1, 1, 1, 1, 1, 1, 1, ...
2, 3, 4, 5, 6, 7, 8, 9, 10, ...
3, 6, 10, 15, 21, 28, 36, 45, 55, ...
4, 9, 16, 25, 36, 49, 64, 81, 100, ...
5, 14, 30, 55, 91, 140, 204, 285, 385, ...
6, 18, 40, 75, 126, 196, 288, 405, 550, ...
7, 25, 65, 140, 266, 462, 750, 1155, 1705, ...
8, 30, 80, 175, 336, 588, 960, 1485, 2200, ...
9, 36, 100, 225, 441, 784, 1296, 2025, 3025, ...
MATHEMATICA
Table[Length@ Union@ Flatten[TensorProduct @@ ConstantArray[Range@ #, k]] &[n - k + 1], {n, 11}, {k, n, 1, -1}] // Flatten (* Michael De Vlieger, Jan 01 2019 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Seiichi Manyama, Dec 31 2018
STATUS
approved