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-3 of 3 results.

A379097 Numbers that are not waterproof.

Original entry on oeis.org

60, 84, 120, 132, 156, 168, 204, 228, 240, 264, 276, 280, 300, 312, 315, 336, 348, 372, 408, 420, 440, 444, 456, 480, 492, 495, 516, 520, 528, 552, 560, 564, 585, 588, 600, 616, 624, 630, 636, 660, 672, 680, 693, 696, 708, 728, 732, 744, 760, 765, 780, 804, 816
Offset: 1

Views

Author

Peter Luschny, Dec 16 2024

Keywords

Comments

Zero and one are waterproof numbers by convention. Numbers that admit a prime factorization are not waterproof if their water capacity is > 0. (The water capacity of a number is defined in A275339.)
Proper subset of A375055, in turn a proper subset of A126706, since A001221(a(n)) >= 3 and a maximum multiplicity is required for at least one prime power factor, so as to have positive water capacity. - Michael De Vlieger, Dec 18 2024

Crossrefs

Programs

  • Maple
    # The function 'water_capacity' is defined in A275339.
    is_not_waterproof := n -> ifelse(n < 2, false, is(water_capacity(n) <> 0)):
    select(is_not_waterproof, [seq(0..820)]);
  • Mathematica
    nn = 816;
    s = Select[Range[nn], Nor[SquareFreeQ[#], PrimePowerQ[#]] &];
    Select[s, Function[f, And[NoneTrue[{Sort[f], ReverseSort[f]}, # == f &],
      Total[(f //. {a___, b_, c__, d_, e___} /;
        AllTrue[{c}, And[# < b, # < d] &] :>
        {a, b, Sequence @@ Table[Min[b, d], {Length[{c}]}], d, e}) - f] > 0] ]
    [Power @@@ FactorInteger[#]] &] (* Michael De Vlieger, Dec 18 2024, after Jean-François Alcover at A275339 *)
  • Python
    # The function 'WaterCapacity' is defined in A275339.
    print([n for n in range(818) if WaterCapacity(n) > 0])

A379096 Waterproof numbers >= 60.

Original entry on oeis.org

61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 121
Offset: 1

Views

Author

Peter Luschny, Dec 16 2024

Keywords

Comments

All nonnegative numbers less than 60 are waterproof.
Zero and one are waterproof numbers by convention. Numbers that admit a prime factorization are waterproof if their water capacity is 0. (The water capacity of a number is defined in A275339.)
If the factors p_i^e_i in the canonical prime factorization of n are weakly ascending or weakly descending, then n is waterproof.
A number is waterproof if and only if it equals its waterproof hull (A379098). The waterproof hull h(n) of n is the smallest waterproof number that n divides.
Numbers that are not waterproof are listed in A379097.

Examples

			Numbers having at most two distinct prime factors (A070915) are waterproof. The primorials (A002110) are waterproof.
48300 has a water capacity of 17 and so is not waterproof. The waterproof hull of 48300 is 1014300.
		

Crossrefs

Programs

  • Maple
    # The function 'water_capacity' is defined in A275339.
    is_waterproof := n -> ifelse(n < 2, true, is(water_capacity(n) = 0)):
    select(is_waterproof, [seq(60..121)]);
  • Python
    # The function 'WaterCapacity' is defined in A275339.
    print([n for n in range(60, 122) if WaterCapacity(n) == 0])

A379095 The water sealings of numbers that are not waterproof (A379097).

Original entry on oeis.org

3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 3, 3, 5, 3, 3, 3, 3, 15, 5, 3, 3, 3, 3, 5, 3, 5, 9, 3, 5, 3, 5, 3, 3, 7, 9, 5, 3, 15, 3, 5, 7, 3, 3, 7, 3, 3, 5, 5, 15, 3, 9, 7, 15, 3, 5, 3, 5, 3, 9, 5, 21, 5, 3, 7, 3, 3, 5, 3, 15, 3, 5, 5, 9, 7, 3, 7, 21, 9, 5, 3, 15, 5
Offset: 1

Views

Author

Peter Luschny, Dec 16 2024

Keywords

Comments

The water sealing of a number n is the smallest positive integer s(n) so that the water hull of n can be written h(n) = n * s(n). n is waterproof if and only if s(n) = 1.

Examples

			48300 has a water capacity of 17 and so is not waterproof. The waterproof hull of 48300 is 1014300. Thus the sealing of 48300 is 21. The prime factorization of the sealing shows where the water holes of n are, in this example at 3 and 7 (see the example in A275339).
		

Crossrefs

Programs

  • Python
    # Using function "WaterCapacity" from A275339.
    def s(n: int) -> int:
        j = n
        while True:
            if WaterCapacity(j) == 0 and j % n == 0: return j
            j += n
    print([s(n)//n for n in range(1, 1200) if WaterCapacity(n) > 0])
Showing 1-3 of 3 results.