cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-5 of 5 results.

A348716 Numbers whose divisors can be partitioned into two disjoint sets without singletons whose harmonic means are both integers in a record number of ways.

Original entry on oeis.org

1, 12, 24, 60, 84, 120, 240, 360, 420, 672, 840, 1260, 1680, 2160, 2520, 3360, 6720, 7560, 10080, 15120, 21840, 27720, 30240, 50400, 60480, 65520, 83160, 98280, 110880, 131040
Offset: 1

Views

Author

Amiram Eldar, Oct 31 2021

Keywords

Comments

The corresponding record values are 0, 1, 3, 10, 26, 198, 1093, 7035, 12391, 17625, ...
From David A. Corneth, Sep 25 2023: (Start)
By multiplying the denominator of the harmonic mean of a(n) by a(n) we get a partition over the divisors of m = a(n) where two expressions must be an integer at the same time. Let v1 and v2 be the of divisors of a(n) into two disjoint sets, |v1| and |v2| their length and h1 and h2 the sum of their respective reciprocals.
Let tau(m) be the number of divisors of m (cf. A000005) and sigma(m) be the sum of divisors of m (cf. A000203). Then by definition |v1|/h1 and |v2|/h2 are integers.
Multiply the numerators and denominators by m and we get (|v1|*m)/(h1*m) and (|v2|*m)/(h2*m) both integers. Furthermore h1*m and h2*m are integers and |v1| + |v2| = tau(m) and h1*m + h2*m = sigma(m).
Substituting |v2| = tau(m) - |v1| and h2*m = sigma(m) - h1*m in (|v2|*m)/(h2*m) we get (|v1|*m)/(h1*m) and ((tau(m) - |v1|) * m) / (sigma(m) - h1*m) are positive integers where tau(m) and sigma(m) are fixed and 2 <= |v1| <= tau(m)-2 and 3 <= h1 <= sigma(m) - 3 as the smallest possible sum of two divisors is 1 + 2 = 3
The resulting pairs (|v1|, h1*m) yield separate partition problems where one should be careful with the case (if it occurs) (2*|v1|, 2*h1*m) = (tau(n), sigma(n)). (End)

Examples

			12 is the smallest number whose set of divisors can be partitioned into two disjoint sets whose harmonic means are both integers: {1, 2, 3, 6} and {4, 12}.
24 is the smallest number whose set of divisors can be partitioned into two disjoint sets whose harmonic means are both integers in three ways: ({3, 6}, {1, 2, 4, 8, 12, 24}), ({1, 3, 6}, {2, 4, 8, 12, 24}) and ({1, 2, 3, 6}, {4, 8, 12, 24}).
From _David A. Corneth_, Sep 25 2023: (Start)
For n = 24 we have tau(n) = tau(24) = 8 and sigma(n) = sigma(24) = 60.
Therefore we look for (|v1|*24) / (h1*24) and ((8-|v1|)*24) / (60 - h1*24) both integers. It turns out that the pairs (|v1|, 24*h1) in {(2, 12), (2, 24), (2, 48), (3, 36), (4, 12)} (omitting conjugates) give integers.
The divisors of 24 are 1, 2, 3, 4, 6, 8, 12, 24. (2, 12) gives the sum 4 + 8; a sum of two distinct divisors of 24 summing to 12. (2, 24) gives no solution, likewise (2, 48) does not. From (3, 36) we get 4 + 8 + 24 and from (4, 12) we get 1 + 2 + 3 + 6.
And indeed these correspond to 2/(8/24 + 4/24) = 2/(1/3 + 1/6), 3/(24/24 + 8/24 + 4/24) = 3/(1 + 1/3 + 1/6) and 4/(24/24 + 12/24 + 8/24 + 4/24) = 4/(1 + 1/2 + 1/3 + 1/6). (End)
		

Crossrefs

Cf. A348715.

Programs

  • Mathematica
    q[d_] := Length[d] > 1 && IntegerQ@HarmonicMean[d]; c[n_] := Count[Subsets[(d = Divisors[n])], _?(q[#] && q[Complement[d, #]] &)]/2; cm = -1; s = {}; Do[If[(c1 = c[n]) > cm, cm = c1; AppendTo[s, n]], {n, 1, 240}]; s
  • Python
    from fractions import Fraction
    from itertools import count, islice, combinations
    from sympy import divisors
    def A348716_gen(): # generator of terms
        c = 0
        yield 1
        for n in count(2):
            divs = tuple(divisors(n, generator=True))
            l, b = len(divs), sum(Fraction(1,d) for d in divs)
            if l>=4 and 2**(l-1)-l>c:
                m = sum(1 for k in range(2,(l-1>>1)+1) for p in combinations(divs,k) if not ((s:=sum(Fraction(1,d) for d in p)).denominator*k%(s.numerator) or (r:=b-s).denominator*(l-k)%(r.numerator)))
                if l&1 == 0:
                    k = l>>1
                    m += sum(1 for p in combinations(divs,k) if 1 in p and not ((s:=sum(Fraction(1,d) for d in p)).denominator*k%(s.numerator) or (r:=b-s).denominator*k%(r.numerator)))
                if m > c:
                    yield n
                    c = m
    A348716_list = list(islice(A348716_gen(),5)) # Chai Wah Wu, Sep 24 2023

Extensions

a(11) from Chai Wah Wu, Sep 25 2023
a(12)-a(27) from David A. Corneth, Sep 25 2023
a(28)-a(30) from Max Alekseyev, Feb 03 2024

A348718 Numbers whose divisors can be partitioned into two disjoint sets without singletons whose arithmetic means are both integers.

Original entry on oeis.org

6, 10, 12, 14, 15, 16, 18, 20, 21, 22, 24, 26, 27, 28, 30, 32, 33, 34, 35, 36, 38, 39, 40, 42, 44, 45, 46, 48, 50, 51, 52, 54, 55, 56, 57, 58, 60, 62, 63, 64, 65, 66, 68, 69, 70, 72, 74, 75, 76, 77, 78, 80, 81, 82, 84, 85, 86, 87, 88, 90, 91, 92, 93, 94, 95, 96
Offset: 1

Views

Author

Amiram Eldar, Oct 31 2021

Keywords

Comments

First differs from A343311 at n = 29.
Differs from A080257 which contains for example 8 and 128. - R. J. Mathar, Nov 03 2021

Examples

			6 is a term since its set of divisors, {1, 2, 3, 6}, can be partitioned into the two disjoint sets {1, 3} and {2, 6} whose arithmetic means, 2 and 4 respectively, are both integers.
		

Crossrefs

Programs

  • Mathematica
    amQ[d_] := IntegerQ @ Mean[d]; q[n_] := Module[{d = Divisors[n], nd, s, subs, ans = False}, nd = Length[d]; subs = Subsets[d]; Do[s = subs[[k]]; If[Length[s] > 1 && Length[s] <= nd/2 && amQ[s] && amQ[Complement[d, s]], ans = True; Break[]], {k, 1, Length[subs]}]; ans]; Select[Range[100], q]

A362801 Numbers whose set of divisors can be partitioned into disjoint parts, all of length > 1 and having integer harmonic mean.

Original entry on oeis.org

6, 12, 18, 24, 28, 30, 40, 42, 45, 48, 54, 56, 60, 66, 72, 78, 84, 90, 96, 102, 108, 112, 114, 120, 126, 132, 135, 138, 140, 144, 150, 156, 162, 168, 174, 180, 186, 192, 196, 198, 200, 204, 210, 216, 220, 222, 224, 225, 228, 234, 240, 246, 252, 258, 264, 270, 276
Offset: 1

Views

Author

Amiram Eldar, May 04 2023

Keywords

Comments

Numbers k such that A362802(k) > 0.
Includes all the harmonic numbers (A001599) except for 1, since the set of their divisors has an integer harmonic mean (in this case the partition is into a single part).
This sequence is infinite. For example, if k is a term and p is a prime that does not divide k, then k*p is also a term.

Examples

			12 is a term since its set of divisors, {1, 2, 3, 4, 6, 12} can be partitioned into 2 disjoint parts, {1, 2, 3, 6} and {4, 12}, whose harmonic means, 2 and 6, are both integers.
		

Crossrefs

Cf. A362802.
Subsequences: A001599 \ {1}, A348715, A362803 \ {1}.

Programs

  • Mathematica
    harmQ[s_] := AllTrue[s, Length[#] > 1 && IntegerQ[HarmonicMean[#]] &]; q[n_] := Module[{d = Divisors[n], r}, r = ResourceFunction["SetPartitions"][d]; AnyTrue[r, harmQ]]; Do[If[q[n], Print[n]], {n, 1, 100}]

A348922 Numbers that are both infinitary and noninfinitary harmonic numbers.

Original entry on oeis.org

45, 60, 54600, 257040, 1801800, 2789640, 4299750, 47297250, 1707259680, 4093362000
Offset: 1

Views

Author

Amiram Eldar, Nov 04 2021

Keywords

Comments

a(11) > 10^10.
For each term the two sets of infinitary and noninfinitary divisors both contain more than one element. The only number with a single infinitary divisor is 1 which does not have noninfinitary divisors. Numbers with a single noninfinitary divisor are the squares of primes which are not infinitary harmonic numbers. Therefore, this sequence is a subsequence of A348715.
Nonsquarefree numbers k such that A049417(k) divides k*A037445(k) and A348271(k) divides k*A348341(k). The sequence also includes: 18779856480, 44425017000, 13594055202000, 27188110404000, 299069214444000, 6824215711404000. - Daniel Suteu, Nov 06 2021

Examples

			45 is a term since the infinitary divisors of 45 are 1, 5, 9 and 45, and their harmonic mean is 3, and the noninfinitary divisors of 45 are 3 and 15, and their harmonic mean is 5.
		

Crossrefs

Intersection of A063947 and A348918.
Subsequence of A348715.
Cf. A348923.

Programs

  • Mathematica
    f[p_, e_] := Module[{b = IntegerDigits[e, 2], m}, m = Length[b]; Product[If[b[[j]] > 0, 1 + p^(2^(m - j)), 1], {j, 1, m}]]; isigma[1] = 1; isigma[n_] := Times @@ f @@@ FactorInteger[n]; id[1] = 1; id[n_] := Times @@ Flatten[2^DigitCount[#, 2, 1]& /@ FactorInteger[n][[;; , 2]] ]; pow2Q[n_] := n == 2^IntegerExponent[n, 2]; Select[Range[3*10^5], !pow2Q[DivisorSigma[0, #]] && IntegerQ[# * (d = id[#])/(s = isigma[#])] && IntegerQ[# * (DivisorSigma[0, #] - d)/(DivisorSigma[1, #] - s)] &]

A348923 Numbers that are both unitary and nonunitary harmonic numbers.

Original entry on oeis.org

45, 60, 3780, 64260, 3112200, 6320160
Offset: 1

Views

Author

Amiram Eldar, Nov 04 2021

Keywords

Comments

a(7) > 10^12, if it exists.
For each term the two sets of unitary and nonunitary divisors both contain more than one element. The only number with a single unitary divisor is 1 which does not have nonunitary divisors. Numbers with a single nonunitary divisor are the squares of primes which are not unitary harmonic numbers. Therefore, this sequence is a subsequence of A348715.
Nonsquarefree numbers k such that A034448(k) divides k*A034444(k) and A048146(k) divides k*A048105(k). - Daniel Suteu, Nov 05 2021

Examples

			45 is a term since the unitary divisors of 45 are 1, 5, 9 and 45, and their harmonic mean is 3, and the nonunitary divisors of 45 are 3 and 15, and their harmonic mean is 5.
		

Crossrefs

Intersection of A006086 and A319745.
Subsequence of A348715.
Cf. A348922.

Programs

  • Mathematica
    usigma[1] = 1; usigma[n_] := Times @@ (1 + Power @@@ FactorInteger[n]); Select[Range[65000], !SquareFreeQ[#] && IntegerQ[# * (d = 2^PrimeNu[#])/ (s = usigma[#])] && IntegerQ[# * (DivisorSigma[0, #] - d)/(DivisorSigma[1, #] - s)] &]
Showing 1-5 of 5 results.