OFFSET
1,5
COMMENTS
Difference between the sum of divisors n and the number of distinct sums of distinct divisors of n.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
EXAMPLE
For n = 3, with divisors [1, 3] and sigma(3)=4, only 2 in range 1..4 cannot be represented as a sum of a subset of [1, 3], therefore a(3) = 1.
For n = 15, with divisors [1, 3, 5, 15] and sigma(15) = 24, the subset sums are 1, 3, 1+3, 5, 1+5, 3+5, 1+3+5, 15, 1+15, 3+15, 1+3+15, 5+15, 1+5+15, 3+5+15, 1+3+5+15 i.e., [1, 3, 4, 5, 6, 8, 9, 15, 16, 18, 19, 20, 21, 23, 24], which leaves 2, 7, 10, 11, 12, 13, 14, 17, 22 as unrepresented numbers, therefore a(15) = 9.
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Nov 29 2024
STATUS
approved