login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A258786 Numbers n whose sum of anti-divisors is a permutation of their digits. 1

%I #10 Jun 16 2015 14:19:56

%S 5,8,41,56,64,358,614,946,1092,1382,1683,2430,2683,2734,2834,2945,

%T 3045,3067,3602,4056,4286,5186,5784,6874,7251,8104,8546,9264,12881,

%U 14028,14384,15258,17386,21103,22044,23331,24434,24603,25346,26420,26822,26845,27024,27232

%N Numbers n whose sum of anti-divisors is a permutation of their digits.

%C A073930 is a subset of this sequence.

%H Paolo P. Lava, <a href="/A258786/b258786.txt">Table of n, a(n) for n = 1..200</a>

%e Anti-divisors of 5 are 2, 3 whose sum is 5.

%e Anti-divisors of 41 are 2, 3, 9, 27 whose sum is 41.

%e Anti-divisors of 64 are 3, 43 whose sum is 46 that is a permutation of the digit of 64.

%p with(numtheory):P:=proc(q) local a,b,j,k,ok,n,p;

%p for n from 1 to q do k:=0; j:=n;

%p while j mod 2 <> 1 do k:=k+1; j:=j/2; od;

%p a:=sigma(2*n+1)+sigma(2*n-1)+sigma(n/2^k)*2^(k+1)-6*n-2;

%p if ilog10(n)=ilog10(a) then j:=sort(convert(n,base,10)); a:=sort(convert(a,base,10)); ok:=1;

%p for k from 1 to nops(a) do if j[k]<>a[k] then ok:=0; break;

%p fi; od; if ok=1 then print(n); fi; fi; od; end: P(10^9);

%t ad[n_] := Cases[Range[2, n - 1], _?(Abs[Mod[n, #] - #/2] < 1 &)]; Select[Range@ 5000, SameQ[DigitCount@ #, DigitCount[Total[ad@ #]]] &] (* _Michael De Vlieger_, Jun 10 2015 *)

%o (Python)

%o from sympy.ntheory.factor_ import antidivisors

%o A258786_list = [n for n in range(1,10**5) if sorted(str(n)) == sorted(str(sum(antidivisors(n))))] # _Chai Wah Wu_, Jun 11 2015

%Y Cf. A066417, A073930, A114065, A115920, A115921, A175795, A225902.

%K nonn,base

%O 1,1

%A _Paolo P. Lava_, Jun 10 2015

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 07:53 EDT 2024. Contains 371964 sequences. (Running on oeis4.)