OFFSET
1,1
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..100
EXAMPLE
sigma(504) = 1560 and sigma(504) - 504 = 1056. - Typo fixed by Ivan N. Ianakiev, Oct 04 2016
MAPLE
with(numtheory): P:= proc(q) local n; for n from 1 to q do
if sort(convert(sigma(n), base, 10))=sort(convert(sigma(n)-n, base, 10)) then print(n); fi; od; end: P(10^9);
MATHEMATICA
Select[Range[10^5], Sort[IntegerDigits[DivisorSigma[1, #]]]==Sort[IntegerDigits[DivisorSigma[1, #]-#]]&] (* Ivan N. Ianakiev, Oct 04 2016 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Paolo P. Lava, Sep 30 2016
STATUS
approved