OFFSET
1,5
LINKS
Felix Huber, Table of n, a(n) for n = 1..5084
Eric Weisstein's World of Mathematics, Abundant Number
Eric Weisstein's World of Mathematics, Partition
EXAMPLE
The a(10) = 5 partitions of A005101(10) = 54 are [54], [12, 42], [18, 36], [24, 30] and [12, 18, 24].
MAPLE
with(NumberTheory):
d := proc(i) option remember; sigma(i) > 2*i; end proc:
c := proc(i) option remember; `if`(i = 0, 0, c(i - 1) + `if`(d(i), i, 0)); end proc:
b := proc(n, i) option remember; `if`(n = 0, 1, `if`(i = 0 or c(i) < n, 0, b(n, i - 1) + `if`(i <= n and d(i), b(n - i, i - 1), 0))); end proc:
a := proc(n) option remember; local s, m, k, i;
s := proc(i, j, n) option remember; `if`(j >= n, i, s(i + 1, `if`(d(i + 1), j + 1, j), n)) end proc;
m := `if`(n = 1, 12, a(n - 1)[1]);
k := `if`(n = 1, 1, n - 1);
i := s(m, k, n);
[i, b(i, i)];
end proc:
A393206 := n -> a(n)[2]:
seq(A393206(n), n = 1 .. 62);
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Huber, Feb 13 2026
STATUS
approved
