OFFSET
1,2
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..1000
EXAMPLE
24 is in the sequence because 24 = 2+4+6+12 and 12/2 + 12/4 + 12/6 + 12/12 gives the same partition 2+4+6+12.
MATHEMATICA
SelfInvPart[n_, x_, terms_] := If[Length[terms]==0||x<0, False, If[x==0, True, If[IntegerQ[Sqrt[n]]&&SelfInvPart[n, x-Sqrt[n], terms], True, If[IntegerQ[n/First[terms]]&&SelfInvPart[n, x-First[terms]-n/First[terms], terms], True, SelfInvPart[n, x, Rest[terms]]]]]]; TestSelfInv[n_] := SelfInvPart[n, n, Divisors[n]]; Select[Range[100], TestSelfInv]
CROSSREFS
KEYWORD
nonn,nice
AUTHOR
David Eppstein, Jan 23 2002
EXTENSIONS
More terms from Dean Hickerson, Jan 27 2002
STATUS
approved