OFFSET
2,4
LINKS
Kerry Mitchell, Table of n, a(n) for n = 2..10012
EXAMPLE
The array starts (first row: m=2)
[ 0 1 2 2 3 2 3 4 2 3 4 4 5 2 3 4 4 5 4 5 6 2 3 4 4 ...]
[ 0 1 2 2 3 3 3 4 5 3 4 5 3 4 5 5 6 3 4 5 5 6 3 4 5 ...]
[ 0 1 2 3 2 3 4 3 4 4 5 6 7 4 4 5 6 7 4 5 6 7 6 7 8 ...]
[ 0 1 2 3 4 2 3 4 5 3 4 5 5 6 7 8 9 4 5 5 6 7 8 9 5 ...]
[ 0 1 2 3 4 5 2 3 4 5 6 3 4 5 6 6 7 8 9 10 11 4 5 6 6 ...]
[ 0 1 2 3 4 5 6 2 3 4 5 6 7 3 4 5 6 7 7 8 9 10 11 12 13 ...]
[ 0 1 2 3 4 5 6 7 2 3 4 5 6 7 8 3 4 5 6 7 8 8 9 10 11 ...]
[ 0 1 2 3 4 5 6 7 8 2 3 4 5 6 7 8 9 3 4 5 6 7 8 9 9 ...]
[ 0 1 2 3 4 5 6 7 8 9 2 3 4 5 6 7 8 9 10 3 4 5 6 7 8 ...]
[ 0 1 2 3 4 5 6 7 8 9 10 2 3 4 5 6 7 8 9 10 11 3 4 5 6 ...]
[ 0 1 2 3 4 5 6 7 8 9 10 11 2 3 4 5 6 7 8 9 10 11 12 3 4 ...]
[ 0 1 2 3 4 5 6 7 8 9 10 11 12 2 3 4 5 6 7 8 9 10 11 12 13 ...]
...
It is easy to prove that row m starts with (0, ..., m-1; 2, ..., m; 3, ..., m; m, ..., 2m-1; ...).
PROG
(PARI) A289281_row(n=30, k=2, a=[0])={while(#a<n, a=concat(vector(#a, j, if(a[j]%k, a[j]+1, vector(k, i, a[j]+i-1))))); a}
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
M. F. Hasler, Jul 01 2017
STATUS
approved