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!)
A273227 Consider all ways of writing the n-th composite number as the product of two divisors d1*d2 = d3*d4 = ...; a(n) is the minimum of the sums {d1 + d2, d3 + d4, ...}. 3

%I #18 Jul 09 2018 23:36:09

%S 4,5,6,6,7,7,9,8,8,9,9,10,13,10,10,15,12,11,11,12,14,19,12,12,21,16,

%T 13,13,15,14,25,14,14,15,20,17,15,16,15,22,31,16,33,16,16,18,17,21,26,

%U 17,17,39,20,23,18,19,18,18,43,19,22,45,32,19,19,20,27,34

%N Consider all ways of writing the n-th composite number as the product of two divisors d1*d2 = d3*d4 = ...; a(n) is the minimum of the sums {d1 + d2, d3 + d4, ...}.

%C a(n) = A046343(n) if n is semiprime.

%C This sequence is included in A063655. - _Giovanni Resta_, May 18 2016

%C a(n) >= 2 * sqrt(A002808(n)). - _David A. Corneth_, May 20 2016

%H Charles R Greathouse IV, <a href="/A273227/b273227.txt">Table of n, a(n) for n = 1..10000</a>

%e a(14) = 10 because A002808(14) = 24 = 2*12 = 3*8 = 4*6 and 4+6 = 10 is the minimum sum.

%p with(numtheory):nn:=100:lst:={}:

%p for n from 1 to nn do:

%p it:=0:lst:={}:

%p d:=divisors(n):n0:=nops(d):

%p if n0>2 then

%p for i from 2 to n0-1 do:

%p p:=d[i]:

%p for j from i to n0-1 do:

%p q:=d[j]:

%p if p*q=n then

%p lst:=lst union {p+q}:

%p else

%p fi:

%p od:

%p od:

%p printf(`%d, `,lst[1]):

%p fi:

%p od:

%t Function[n, If[OddQ@ Length@ #, 2 Sqrt@ n, Total@ Take[#, {Length[#]/2, Length[#]/2 + 1}]] &@ Divisors@ n] /@ Select[Range@ 93, CompositeQ] (* _Michael De Vlieger_, May 20 2016 *)

%t msd[n_]:=Module[{d=Divisors[n],len},len=Length[d];If[OddQ[len], 2*d[[ (len+1)/2]], d[[len/2]]+d[[len/2+1]]]]; msd/@Select[Range[200], CompositeQ] (* Requires Mathematica version 10 or later *) (* _Harvey P. Dale_, Jul 09 2018 *)

%o (PARI) forcomposite(n=4,100, d=divisors(n); t=#d; k=if(t%2,2*d[t\2+1], d[t\2]+d[t\2+1]); print1(k", ")) \\ _Charles R Greathouse IV_, Jun 08 2016

%Y Cf. A002808, A046343, A063655.

%K nonn

%O 1,1

%A _Michel Lagneau_, May 18 2016

%E Name edited by _Jon E. Schoenfield_, Sep 12 2017

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 16 04:38 EDT 2024. Contains 371696 sequences. (Running on oeis4.)