OFFSET
1,2
EXAMPLE
n | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
--------+-----------------------------------------------------------
Step 1 | 3
Step 2 | 6 9
Step 3 | 7 10 13
Step 4 | 10 14 17 21
Step 5 | 12 18
Step 6 | 14 22
Step 7 | 15
Step 8 | 19
Step 9 | 20
Step 10 | 23
--------+-----------------------------------------------------------
a(n) | 1 3 3 4 6 7 7 10 10 10 12 14 14 15 15 17 18 19 20 23
PROG
(PARI) lista(nn) = my(va = [1..nn]); for (n=1, nn, for (k=1, n, my(j = n+k*va[n]); if (j <= #va, va[j]++); )); va; \\ Michel Marcus, Aug 09 2022
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Ctibor O. Zizka, May 03 2008
EXTENSIONS
Corrected and extended by Michel Marcus, Aug 09 2022
STATUS
approved