OFFSET
0,5
COMMENTS
LINKS
Michael De Vlieger, Scatterplot of a(n) for n=0..31686, i.e., rows 0..256.
Michael De Vlieger, Scatterplot of a(n)for n=0..518562, i.e., rows 0..1024
EXAMPLE
Triangle begins:
k=0 1 2 3 4 5
n=0: 0;
n=1: 1;
n=2: 1;
n=3: 1, 3;
n=4: 1, 4;
n=5: 1, 5, 0, 1;
n=6: 2, 6, 1;
n=7: 2, 7, 2, 1, 1, 1;
MATHEMATICA
c[_] = 0; Reap[Do[w = {}; Array[(Set[m, c[#]]; c[m]++; AppendTo[w, m]) &, If[n == 0, 1, n - DivisorSigma[0, n] + 1], 0]; Sow[w], {n, 0, 15}]][[-1, -1]] // Flatten (* Michael De Vlieger, Nov 09 2021 *)
PROG
(Python)
from collections import Counter
from sympy import divisor_count
def auptor(rows):
alst, inventory = [0], Counter([0])
for m in range(1, rows):
for k in range(m-divisor_count(m)+1):
c = inventory[k]; alst.append(c); inventory.update([c])
return alst
print(auptor(16)) # Michael S. Branicky, Nov 07 2021
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Ctibor O. Zizka, Nov 06 2021
STATUS
approved