OFFSET
1,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..290
MATHEMATICA
Do[ d = Drop[ Divisors[ n ], -1 ]; l = Length[ d ]; ev = 0; od = 1; k = 2; While[ k <= l, If[ EvenQ[ d[ [ k ] ] ], ev = ev + d[ [ k ] ], od = od + d[ [ k ] ] ]; k++ ]; If[ !PrimeQ[ n ] && IntegerQ[ n/ Abs[ ev - od ] ], Print[ n ] ], {n, 2, 10^5} ]
PROG
(PARI) { n=0; for (m=4, 10^9, if (isprime(m), next); d=divisors(m); s=1; for (i=2, numdiv(m) - 1, if (d[i]%2, s += d[i], s -= d[i])); if (s != 0 && m%s == 0, write("b066193.txt", n++, " ", m); if (n==1000, return)) ) } \\ Harry J. Smith, Feb 05 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Dec 15 2001
STATUS
approved