OFFSET
1,3
EXAMPLE
Table starts:
[1] 1;
[2] 1, 2;
[3] 1, 1, 2;
[4] 1, 2, 2, 3;
[5] 1, 1, 2, 2, 3;
[6] 1, 2, 3, 4, 4, 5;
[7] 1, 1, 1, 2, 3, 3, 4;
[8] 1, 2, 3, 4, 5, 6, 6, 7;
[9] 1, 1, 2, 2, 3, 4, 5, 5, 6;
[10] 1, 2, 2, 3, 4, 5, 6, 7, 7, 8.
MAPLE
IversonBrackets := expr -> subs(true=1, false=0, evalb(expr)):
T := (n, k) -> add(IversonBrackets(irem(n, j) <> 1), j = 1..k):
for n from 1 to 19 do seq(T(n, k), k = 1..n) od;
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Peter Luschny, Jan 02 2021
STATUS
approved