OFFSET
0,5
COMMENTS
Every column is a permutation of the nonnegative integers.
LINKS
EXAMPLE
Square array A(n,k) begins:
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ...
2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ...
3, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, ...
4, 8, 12, 1, 2, 3, 4, 5, 6, 7, 8, ...
5, 7, 15, 20, 1, 2, 3, 4, 5, 6, 7, ...
6, 3, 14, 24, 30, 1, 2, 3, 4, 5, 6, ...
7, 5, 13, 23, 35, 42, 1, 2, 3, 4, 5, ...
8, 4, 8, 22, 34, 48, 56, 1, 2, 3, 4, ...
9, 18, 11, 21, 33, 47, 63, 72, 1, 2, 3, ...
10, 20, 10, 15, 32, 46, 62, 80, 90, 1, 2, ...
MAPLE
A:= proc(n, k) local t, r, i; t, r:= n, 0;
for i from 0 while t>0 do
r:= r+k^i *irem(k-irem(t, k, 't'), k)
od; r
end:
seq(seq(A(n, 2+d-n), n=0..d), d=0..14);
PROG
(PARI) A(n, k)=fromdigits(apply(d->(k-d)%k, digits(n, k)), k); \\ Gheorghe Coserea, Apr 23 2018
CROSSREFS
AUTHOR
Alois P. Heinz, Mar 03 2015
STATUS
approved