OFFSET
1,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
EXAMPLE
a(7) = 5: [6], [3,1], [2,2], [2,1,1], [1,1,1,1,1,1] or (1+6), (1+3*(1+1)), (1+2*(1+2)), (1+2*(1+1*(1+1))), (1+1*(1+1*(1+1*(1+1*(1+1*(1+1)))))).
MAPLE
b:= proc(n, i) option remember; `if`(n=1, 1, add(
`if`(d<=i, b((n-1)/d, d), 0), d=numtheory[divisors](n-1)))
end:
a:= n-> b(n$2):
seq(a(n), n=1..100);
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Dec 06 2024
STATUS
approved