OFFSET
1,1
COMMENTS
The sequence A119357 is closed under multiplication by positive integers and the primitive terms are those that are not multiples of other terms.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
45 is in the sequence because (i) the divisors 1, 5, 9, 15 of 45 satisfy 15 = 1 + 5 + 9 (consequently the number of distinct nonzero sums of distinct divisors of 45 is less than 2^tau(45) - 1) and (ii) no proper divisor of 45 has this property.
The first terms of A119357 are 6, 12, 18, 20, 24, 28, 30, 36, 40, 42, 45, 48 and, consequently, the first terms of this sequence are 6, 20, 28, 45.
PROG
(PARI) sums(n) = {my (divs = divisors(n)); my (nbdivs = #divs); my (nb = 2^nbdivs-1); my (vsd = vector(nb)); for (i=1, nb, vb = padbin(i, nbdivs); vsd[i] = sum(j=1, nbdivs, divs[j]*vb[j]); ); vsd; }
isA119357(n) = {my(vsd = sums(n)); #Set(vsd) < #vsd; }
isprmi(n, v) = {for (k=1, #v, if (! (n % v[k]), return (0); ); ); return (1); }
lista(nn) = {my(vless = []); for (n=1, nn, if (isprmi(n, vless) && isA119357(n), vless = concat(vless, n); print1(n, ", "); ); ); } \\ Michel Marcus, Jan 13 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Emeric Deutsch, May 20 2006
STATUS
approved
