OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..100
EXAMPLE
12 is in the sequence since it is a Harshad number (1 + 2 = 3 is a divisor of 12), an admirable number: 1 - 2 + 3 + 4 + 6 = 12, and the subtracted divisor, 2, is also a Harshad number.
MATHEMATICA
hQ[n_] := Divisible[n, Plus @@ IntegerDigits@n]; aQ[n_] := hQ[n] && (d = DivisorSigma[1, n] - 2*n) > 0 && EvenQ[d] && d/2 < n && hQ[d/2] && Divisible[n, d/2]; Select[Range[50000], aQ] (* Amiram Eldar, Oct 27 2019 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Jason Earls, Aug 26 2005
STATUS
approved