Testwiki:Reference desk/Archives/Mathematics/2025 January 15

From testwiki
Jump to navigation Jump to search

Template:Error:not substituted

{| width = "100%"

|- ! colspan="3" align="center" | Mathematics desk |- ! width="20%" align="left" | < January 14 ! width="25%" align="center"|<< Dec | January | Feb >> ! width="20%" align="right" |Current desk > |}

Welcome to the Wikipedia Mathematics Reference Desk Archives
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


January 15

Least common multiple

What do you call a subset of the factors of x where all 3 are true?

  1. LCM(subset)=x
  2. no member >√x
  3. can't be done with less members

(obviously only some x would have even 1 subset passing all 3)

Is there also a name for a version where no member ≥√x or a version with tiebreaks (maybe smallest largest member then smallest 2nd largest member and so on?) or a version with both extra strictures? Sagittarian Milky Way (talk) 22:56, 15 January 2025 (UTC)

It seems unlikely that anyone has before come up with this specific set of conditions, let alone coined a term for it.  --Lambiam 22:24, 16 January 2025 (UTC)
I was looking at factor lists of numbers with many factors & thinking most of these are superfluous to define a least common multiple & wondering how many you could remove without the LCM becoming less than the number (obviously there are other applications where you need all factors) but if you don't set a max size it's too easy you could always get it down to 2 with lcm(1,x) sometimes also others like lcm(prime, bigger prime) or lcm(2,x/2 if odd) so if you must use factors ≤√x it'll at least be over 2 members so more interesting. Sagittarian Milky Way (talk) 16:32, 17 January 2025 (UTC)
Consider a set S of numbers whose lcm equals a given number n. Let a and b be two different elements of that set that are not coprime. This means that they have nontrivial factors pα and pβ in which p is a prime number and α and β are at least 1. Assume wlog that αβ. Then the lcm of set S oobtained by replacing a by a=a/pα is the same as that of S. This means that we can keep things simpler by only considering sets with pairwise coprime elements. Then the lcm function can be replaced by the product operator , where {a1,a2,...ak}=a1a2ak.
Given the factorization n=p1m1p2m2...pkmk, one possible choice for S is the set F={p1m1,p2m2,...,pkmk}. Given a partition 𝒫 of F, define (𝒫) by
(𝒫)={X|X𝒫}.
Then ((𝒫))=n, so for each partition 𝒫, the set (𝒫) is also a candidate for S. Conversely, each set S of mutually coprime numbers such that S=n can be written as (𝒫) for some partition 𝒫 of F. The original F itself equals ({{p1m1},{p2m2},...,{pkmk}}).
Instead of partitioning F and then applying () to the partition, we can obtain the same candidates for S by starting with S0=F and obtaining Sn+1 from Sn — provided that Sn is not a singleton set — by choosing two elements from Sn and replacing these two by a single element, namely their product. If we wish to keep the values low, a reasonable greedy heuristic is to pick each time the smallest two elements.
Applying this to Plato's favourite number, we get:
5040=24325171, so S0={24,32,51,71}={16,9,5,7}.
S0={5,7,9,16}; the smallest two elements are 5 and 7, so S1={5×7,9,16}={35,9,16}.
S1={9,16,35}; the smallest two elements are 9 and 16, so S2={9×16,35}={144,35}.
S2={35,144}; the smallest two elements are 35 and 144, so S3={35×144}={5040}.
If the largest element must not exceed the square root of n, the set S has to contain at least three elements, so with k being the number of distinct prime factors, there is no point in going farther than Sk3.  --Lambiam 23:11, 17 January 2025 (UTC)