Misplaced Pages

:Reference desk/Mathematics: Difference between revisions - Misplaced Pages

Article snapshot taken from[REDACTED] with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Misplaced Pages:Reference desk Browse history interactively← Previous editContent deleted Content addedVisualWikitext
Revision as of 21:35, 15 December 2019 editCiaPan (talk | contribs)Extended confirmed users, Pending changes reviewers12,195 edits Euclidean plane?: Comment← Previous edit Latest revision as of 00:05, 23 January 2025 edit undoScsbot (talk | contribs)Bots240,572 edits edited by robot: adding date header(s) 
Line 1: Line 1:
<noinclude>{{Misplaced Pages:Reference desk/header|WP:RD/MA}}
<noinclude>
{{Misplaced Pages:Reference desk/header|WP:RD/MA}}
] ]
] ]
Line 6: Line 5:
] ]
] ]
] ]</noinclude>
</noinclude>


= December 15 =


== Euclidean plane? == = January 8 =


== Even Fermat pseudoprimes ==
Please tell me, is the Euclidean plane the concept of two dimensional space ''only'', or is it the concept of 2D space + something else? <span style="color: #8a87a6; font-size: 11px; font-family: Impact">~ ].].]</span> 07:11, 15 December 2019 (UTC)
:] specifies that it's two-dimensional. --] (]) 07:47, 15 December 2019 (UTC)
::Yes it's definitely a 2D plane on which to do graphs and plots and stuff, however, if you search for sources "Euclidean plane" specifically... it no longer seems to be just the plane. One catch phrase seems to be, "it satisfies the axioms (Π'A1), (Π'A2), and (Π'A3)", explanations as to what that means are not included... <span style="color: #8a87a6; font-size: 11px; font-family: Impact">~ ].].]</span> 09:38, 15 December 2019 (UTC)
::: Why don’t you try to include enough information in your question so that others have some dim hope of understanding what you’re asking about. Right now answering appears to require being able to read your mind. —] (]) 13:53, 15 December 2019 (UTC)
::::Pretty sure what the OP is referring to is , the page on sciencedirect.com. The page is cryptic and it's apparent purpose is to sell books rather than educate. I'd suggest trying a different website (like Misplaced Pages). It's pointless to spend time trying to decipher a confusing or poorly written text when there are so many others to choose from at this level. --] (]) 14:17, 15 December 2019 (UTC)
:::::A Euclidean plane is a two dimensional area for plotting maths in. Is there something else specific about it that makes it a ''Euclidean'' plane, rather than just a plane ''used'' for geometry?


There are infinitely many odd numbers which are ]s to all bases coprime to them (the ]s), but it seems that all even numbers > 946 are Fermat pseudoprimes to at most 1/8 for the bases coprime to them, is this proven? (Like that all odd numbers are ]s to at most 1/4 for the bases coprime to them) ] (]) 12:40, 8 January 2025 (UTC)
:::::I'm looking for someone who can not only use a Euclidean plane, but describe it before and without, using math terms ''or'' figures, to you know, for like, someone who doesn't already know what it is, no really, they don't know what it is, but I want to explain it to them. No, they aren't stupid. It's me. I'm stupid. I can only explain things without math terms and figures. No, it's discriminatory to abuse me. Let's see, what other info was there? One of my favourite quotes from the guides that I am sure is gone now used to say, something like, "Try to write the article as though the reader has a perfect understanding of English, but has never heard of the subject before."


:For what it's worth, any counterexample >28 must have the form <math>2pq</math> where p and q are distinct odd primes such that <math>2pq-1</math> is divisible by both <math>(p-1)/2</math> and <math>(q-1)/2</math>. ] (]) 18:55, 8 January 2025 (UTC)
:::::Don't worry, if you are just a simple math professor and this is beyond you... that's okay! That just means you are normal! <span style="color: #8a87a6; font-size: 11px; font-family: Impact">~ ].].]</span> 16:49, 15 December 2019 (UTC)
::If we denote <math>a := \gcd((p - 1)/2, (q - 1)/2)</math> such that <math>P := (p - 1)/2a</math> and <math>Q := (q - 1)/2a</math> are coprime, then <math>(p - 1)/2 = aP</math> and <math>(q - 1)/2 = aQ</math> divides <math>2pq - 1 = 2(2aP + 1)(2aQ + 1) - 1 = 8a^{2}PQ + 4aP + 4aQ + 1</math>. Naturally, this implies <math>aP</math> divides <math>4aQ + 1</math> and <math>aQ</math> divides <math>4aP + 1</math>, which further implies that <math>a = 1</math> and thus <math>(p - 1)/2</math> and <math>(q - 1)/2</math> are coprime. So we must find (odd) coprime <math>P, Q</math> such that <math>P | 4Q + 1</math> and <math> Q | 4P + 1</math>, and from there <math>2P + 1</math> and <math>2Q + 1</math> must be prime. ] (]) 16:13, 16 January 2025 (UTC)
:::Suppose we have odd coprime <math>P, Q</math> such that <math>P|4Q + 1</math> and <math>Q | 4P + 1</math>. Assume WLOG that <math>P < Q</math>. This means that <math>4P + 1</math> can only be <math>Q</math> or <math>3Q</math>. If <math>4P + 1 = Q</math>, then <math>P | 4Q + 1 \Rightarrow P | 4(4P + 1) + 1 \Rightarrow P | 16P + 5 \Rightarrow P = 1, 5, Q = 5, 21</math>. This yields <math>p := 2P + 1 = 3, 11, q := 2Q + 1 = 11, 43</math> which both work, giving values <math>2pq = 66, 946</math>. If <math>4P + 1 = 3Q</math>, then <math>P | 4(4P + 1)/3 + 1 \Rightarrow P | (16P + 7) / 3 \Rightarrow P | 16P + 7 \Rightarrow P = 1, 7</math>. For either value though <math>4P + 1</math> is not divisible by <math>3</math>, so this doesn't yield any values. We conclude that the only counterexamples greater than <math>28</math> are indeed <math>66, 946</math>. ] (]) 01:32, 17 January 2025 (UTC)
::::It is notable that 28, 66, 946 are ]s, and their indices (7, 11, 43) are ]s, is this a coincidence? ] (]) 10:59, 17 January 2025 (UTC)
:::::The other triangular numbers whose indices are Heegner numbers are 190 (19), 2278 (67), 13366 (163), but 190 is Fermat pseudoprime only to 1/8 for the bases coprime to it, 2278 is Fermat pseudoprime only to 1/32 for the bases coprime to it, 13366 is Fermat pseudoprime only to 1/16 for the bases coprime to it (8, 32, 16 are powers of 2). ] (]) 13:09, 17 January 2025 (UTC)
:::::I seem to know the reason:
:::::(Heegner numbers corresponding to the prime-generating polynomial n^2+n+p, i.e. the number p = (the Heegner number + 1)/4
:::::66 -> 11th triangular number -> 11 and (11+1)/4 = 3 -> 11-1 and 3-1 totally have 2 prime factors of 2 -> 1/(2^2) = 1/4 of the bases coprime to it
:::::190 -> 19th triangular number -> 19 and (19+1)/4 = 5 -> 19-1 and 5-1 totally have 3 prime factors of 2 -> 1/(2^3) = 1/8 of the bases coprime to it
:::::946 -> 43rd triangular number -> 43 and (43+1)/4 = 11 -> 43-1 and 11-1 totally have 2 prime factors of 2 -> 1/(2^2) = 1/4 of the bases coprime to it
:::::2278 -> 67th triangular number -> 67 and (67+1)/4 = 17 -> 67-1 and 17-1 totally have 5 prime factors of 2 -> 1/(2^5) = 1/32 of the bases coprime to it
:::::13366 -> 163rd triangular number -> 163 and (163+1)/4 = 41 -> 163-1 and 41-1 totally have 4 prime factors of 2 -> 1/(2^4) = 1/16 of the bases coprime to it ] (]) 13:16, 17 January 2025 (UTC)
:{{ping|Lambiam}} {{ping|GalacticShoe}} {{ping|RDBury}} {{ping|Bubba73}} ] (]) 14:45, 16 January 2025 (UTC)


== ] ==
:::::: If you actually have a question you want answered, I recommend you devote some energy to communicating the question clearly -- performative rambling is not a good substitute. --] (]) 17:10, 15 December 2019 (UTC)


Is it true that using the rectifying latitude with the best sphere radius (possibly not the same radius for all 3) minimizes the worst-case error for distance (%), distance (km) & max km the 2 paths get from each other? (maximum separation between the great circle & the geodesic for the surface of the WGS84 ellipsoid)? Or is another latitude better like the geocentric latitude? (the geocentric latitude can get ~0.2° from the (by far) most kind of used latitude which is more separation than any kind of latitude (besides the Mercator one that's 0° to ∞°)) What's the best radius for each of these 3 metrics & how well do the worst point pairs for these 3 metrics approximate the ellipsoidal trigonometry answer? (the one where the geodesic latA lon A alt0 to latB lonB alt0 is considered perfect accuracy even though most places aren't on the 2D surface) ] (]) 22:56, 8 January 2025 (UTC)
:::::::The question is obvious and simple. Answer it, improve it, or get out the way? I'm not seeking approval. You ''are'' berating me for amusement. I've showed my sense of humour. There is no need to test me for patience. Thanks anyway o/ <span style="color: #8a87a6; font-size: 11px; font-family: Impact">~ ].].]</span> 18:31, 15 December 2019 (UTC)


= January 10 =
:::::::: I am telling you (again) that you have not articulated a question, at least not one with sufficient context for anyone else to know what might constitute an answer that would satisfy you. If you want a question answered, you should ask it clearly and concisely, with appropriate context. If you just want to jerk off, do it in private. --] (]) 21:17, 15 December 2019 (UTC)


== Knot equivalence ==
:::::::: I am really sorry to inform you you failed. The properties of Euclidean plane appeared very interesting to me some time ago, so now I tried to follow this thread - alas, could not find a sense of humor in it. And not only a sense of humor, but actually little sense at all. What a pity, it could have been an interesting talk... --] (]) 21:34, 15 December 2019 (UTC)

Our ] article gives two definitions, asserted to be equivalent, for when one knot is equivalent to another. Both of these involve auto-homeomorphisms of <math>\mathbf{R}^3</math>.

To me this just kind of feels -- heavy. To move one trefoil knot to another, verifying their equivalence, I apparently have to account for ''all the rest of space''. Is this actually necessary?

Concretely, suppose I define knot equivalence as follows. If <math>K_0</math> and <math>K_1</math> are two knots, defined as continuous maps from into <math>\mathbf{R}^3</math> that are injective except that <math>K_i(0)=K_i(1)</math> (<math>i=0, 1</math>), then say <math>K_0</math> and <math>K_1</math> are equivalent if there is a continuous map <math>f</math> from <math>\times</math> into <math>\mathbf{R}^3</math> such that:
* the map <math>x\mapsto f(x, 0)</math> equals <math>K_0</math>
* the map <math>x\mapsto f(x, 1)</math> equals <math>K_1</math>
* for <math>0<t<1</math>, the map <math>x\mapsto f(x, t)</math> is injective except that <math>f(0,t)=f(1,t)</math>
Is this notion of equivalence the same as the one in the article? --] (]) 07:01, 10 January 2025 (UTC)

:Since no <math>K_t</math> intersects itself, my intuition tells me there ought to be a lower bound on how close it can come to self-intersection. More precisely, the boundary of the ] <math>K_t+B_\delta</math> of <math>K_t</math> and a constant ball <math>B_\delta</math> with a sufficiently small ({{nowrap|<math>t</math>-independent}}) radius <math>\delta</math> should be a torus. Proving this formally may not be easy, but a proof will establish the required ambient isotopy.
:If your conjecture is indeed correct – I'm hedging my bet because ] can be quite counterintuitive – it would be amazing if your markedly simpler characterization is not found in the literature. &nbsp;--] 10:20, 10 January 2025 (UTC)

:I think knot (lol). I believe any nontrivial not is "injectively homotopic" to the unknot. Start with your favorite knot and stretch one arc while compressing the rest so that in the limit the compressed part tends to a point. This can be done injectively. ] (]) 12:03, 10 January 2025 (UTC)
::Yeah, that sounds right. Thanks. --] (]) 18:22, 10 January 2025 (UTC)
:::With the '''R'''<sup>3</sup> embedding definition you can definitely say that if the complements are not homeomorphic then the knots are inequivalent. That's a useful property since you may be able to show that two knots are different without having to go into the details of knot theory, in fact you can show the trefoil knot is not the unknot with a little algebraic topology. In practice, two knots are equivalent if their diagrams can be transformed into each other by a sequence of Reidemeister moves, so the problem is really to find an intuitive definition that's equivalent. As Lambiam pointed out, topology can be counterintuitive, and perhaps "injectively homotopic" = "homotopic" is an example of that. --] (]) 00:40, 11 January 2025 (UTC)
:Think yourself lucky. Maybe. When I had a look at knot theory a while ago the definition was in terms of a finite set of straight lines and Reidemeister moves, and things like infinite knots were an extension. And then there were the extensions like knotting a sphere in 4d. ] (]) 14:50, 10 January 2025 (UTC)

= January 15 =

== Least common multiple ==

What do you call a subset of the factors of x where all 3 are true?
# LCM(subset)=x
# no member >√x
# 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? ] (]) 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. &nbsp;--] 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. ] (]) 16:32, 17 January 2025 (UTC)
::Consider a set <math>S</math> of numbers whose lcm equals a given number <math>n</math>. Let <math>a</math> and <math>b</math> be two different elements of that set that are not coprime. This means that they have nontrivial factors <math>p^\alpha</math> and <math>p^\beta</math> in which <math>p</math> is a prime number and <math>\alpha</math> and <math>\beta</math> are at least <math>1.</math> Assume wlog that <math>\alpha\leq\beta.</math> Then the lcm of set <math>S'</math> oobtained by replacing <math>a</math> by <math>a'=a/p^\alpha</math> is the same as that of <math>S.</math> 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 ] <math>\textstyle\prod,</math> where <math>\textstyle\prod\{a_1,a_2,...a_k\}= a_1a_2\cdots a_k.</math>
::Given the factorization <math>n=p_1^{m_1}p_2^{m_2}...p_k^{m_k},</math> one possible choice for <math>S</math> is the set <math>F=\{p_1^{m_1},p_2^{m_2},...,p_k^{m_k}\}.</math> Given a partition <math>\mathcal{P}</math> of <math>F,</math> define <math>\textstyle\prod^\ast\!(\mathcal{P})</math> by
:::<math>\textstyle\prod^\ast\!(\mathcal{P})=\{\textstyle\prod X\,|\,X\in\mathcal{P}\}.</math>
::Then <math>\textstyle\prod(\textstyle\prod^\ast\!(\mathcal{P}))=n,</math> so for each partition <math>\mathcal{P},</math> the set <math>\textstyle\prod^\ast\!(\mathcal{P})</math> is also a candidate for <math>S.</math> Conversely, each set <math>S</math> of mutually coprime numbers such that <math>\textstyle\prod S=n</math> can be written as <math>\textstyle\prod^\ast\!(\mathcal{P})</math> for some partition <math>\mathcal{P}</math> of <math>F.</math> The original <math>F</math> itself equals <math>\textstyle\prod^\ast\!(\{\{p_1^{m_1}\},\{p_2^{m_2}\},...,\{p_k^{m_k}\}\}).</math>
::Instead of partitioning <math>F</math> and then applying <math>\textstyle\prod^\ast\!(\cdot)</math> to the partition, we can obtain the same candidates for <math>S</math> by starting with <math>S_0=F</math> and obtaining <math>S_{n{+}1}</math> from <math>S_n</math> — provided that <math>S_n</math> is not a singleton set — by choosing two elements from <math>S_n</math> and replacing these two by a single element, namely their product. If we wish to keep the values low, a reasonable ] is to pick each time the smallest two elements.
::Applying this to Plato's favourite number, we get:
:::<math>5040=2^43^25^17^1,</math> so <math>S_0=\{2^4,3^2,5^1,7^1\}=\{16,9,5,7\}.</math>
:::<math>S_0=\{5,7,9,16\}</math>; the smallest two elements are <math>5</math> and <math>7,</math> so <math>S_1=\{5{\times}7,9,16\}=\{35,9,16\}.</math>
:::<math>S_1=\{9,16,35\}</math>; the smallest two elements are <math>9</math> and <math>16,</math> so <math>S_2=\{9{\times}16,35\}=\{144,35\}.</math>
:::<math>S_2=\{35,144\}</math>; the smallest two elements are <math>35</math> and <math>144,</math> so <math>S_3=\{35{\times}144\}=\{5040\}.</math>
::If the largest element must not exceed the square root of <math>n,</math> the set <math>S</math> has to contain at least three elements, so with <math>k</math> being the number of distinct prime factors, there is no point in going farther than <math>S_{k-3}.</math> &nbsp;--] 23:11, 17 January 2025 (UTC)

= January 17 =

== Probability questions ==

First Question: You walk into a room filled with random people. You want to find another person in that room who has the same '''birthday''' as you. For example, June 15. How many people would need to be in the room? How do you go about solving this question?

Second Question: Same as above. However, you want to find another person in that room who has the same '''birth date''' as you. For example, June 15, 1985. How many people would need to be in the room? How do you go about solving this question?

Thanks, ] (]) 08:08, 17 January 2025 (UTC)

:These are both different from the well-known ].
:For the first, let's ignore the possibility of people born on February 29 in a leap year, so there are only 365 possible birthdays. Let us also assume that all 365 birthdays are equally likely, so for any fixed day D of the year, such as January 17, the probability <math>p</math> that a randomly selected person's birthday falls on that very same day is equal to <math>\tfrac1{365}.</math> The probability that this person's birthday falls on a different day is then equal to the complement <math>1{-}p=\tfrac{364}{365}.</math>
:It is easier now to consider the complementary question: What is the probability <math>q_N</math> that none among <math>N</math> randomly selected persons has a given birthday D. The answer to the original question is then given by its complement, <math>1-q_N.</math>
:If <math>N=0,</math> there is no one whose birthday could be D, so <math>q_0=1.</math> If <math>N=1,</math> with just one other (randomly selected) person present, <math>q_1</math> is just the probability that this person's birthday is D, so <math>q_1=1{-}p.</math> Now suppose we already know <math>q_n</math> for some value of <math>n.</math> Then we can determine <math>q_{n{+}1}</math> by considering that the ] of two ] events co-occurring is equal to the product of their individual probabilities. Therefore <math>q_{n{+}1}=q_n\times q_1.</math> We can conclude that in general
::<math>q_n=q_1^n=(1{-}p)^n=(\tfrac{364}{365})^n.</math>
:The probability of the same birthday as yours among a random selection of <math>N</math> people is therefore <math>1-(\tfrac{364}{365})^N.</math>
:Now note that as <math>n</math> gets larger and larger, the value of <math>q_n</math> gets smaller and smaller, but it never reaches zero exactly. Even if <math>N=365,</math> we find that <math>1-(\tfrac{364}{365})^{365}=0.632625...~.</math> To get to 99%, <math>N</math> should be at least <math>1679</math>; <math>1-(\tfrac{364}{365})^{1678}=0.98998...</math> falls still short, but <math>1-(\tfrac{364}{365})^{1679}=0.99001...</math> reaches the target.
:The approach assumes that the possible birthdays are ] over the ], which is not the case in reality. However, to account for this, you only need to know the real value of <math>p</math> for day D and not for any other day.
:To find a somewhat realistic answer to the second question is harder. In reality, the people in a room will not be a random sample from the total population. People below the age of 3 and over the age of 97 will be underrepresented, so if your own birthdate is January 17, 1925, the likelihood of today finding someone present to jointly celebrate your 100th birthday with is much smaller than that of finding a co-celebrant for your 35th birthday if your birthdate is January 17, 1990. The notion of "random selection" is not clearly applicable. You need to know at least the distribution of birthyears among the population from which the people in the room are selected, accounting both for the actual ] and for age-based ]. When you have determined <math>p_\text{Y},</math> the probability that a person randomly selection <u>from those present in the room</u> has the same birthyear Y as you, instead of <math>p=1/365</math> you can use <math>p=p_\text{Y}/365</math> and proceed as above. &nbsp;--] 11:44, 17 January 2025 (UTC)

:: Wow. Very thorough, detailed, and comprehensive. You certainly have a gift for math. Thanks! Let me read this over and process it all. I'll need a day or two. Thanks so much. ] (]) 08:39, 18 January 2025 (UTC)

= January 18 =
== Is it possible to tweak ] so that it returns a different possible solution ? ==
The ] is a non generic modular square root algorithm that compute modular square roots without factoring the modulus…

Let’s say I’ve a valid input for which the algorithm can return a solution, is it possible to tweak it so that it returns a different possible solution ? So far I only found how to modify it to return the modular inverse… <!-- Template:Unsigned IP --><small class="autosigned">—&nbsp;Preceding ] comment added by ] (]) 06:39, 18 January 2025 (UTC)</small> <!--Autosigned by SineBot-->

:This question has also been asked (and answered) at {{section link|User talk:Endo999#A question about Kunerth’s algorithm…}}.
:Being unfamiliar with Kunerth's algorithm I tried to understand it from our article, but the presentation is so confusing (also in the Example section) that I kept getting lost. &nbsp;--] 09:21, 18 January 2025 (UTC)
::Personally, I used to understand it. As the article do contains errors, my question is merely how to modify the implementation in order to get a different valid ouput for the same input ] (]) 14:15, 18 January 2025 (UTC)
::Regarding the answer I received on the other page, it seems to me the author doesn’t fully understand the algorithm. ] (]) 12:46, 20 January 2025 (UTC)

= January 19 =

== Looking for a function like y=1/x with adjustable corner curve ==

I'm trying to figure out how to make a function that passes through (1,1) like <math>y=1/x</math> (I'm interested only in x>0), but lets me adjust the sharpness of that "corner" at (1,1), thereby increasing or decreasing the tail thickness of the curve while still passing through (1,1), with the tails remaining between 0<y<1 and 0<x<1, and the slope at (1,1) remaining -1.

My application for this is to create ] that can maintain a reasonably small radius while having a blobby connection to other metaballs at long distances. I've been experimenting with Desmos to come up with such a function but haven't hit on anything yet. ~] <small>(])</small> 09:11, 19 January 2025 (UTC)

:The usual equation for a hyperbola symmetric about the y axis passing through (a, 0) would be {{math|{{sfrac|x{{sup|2}}|a{{sup|2}}}}-{{sfrac|y{{sup|2}}|b{{sup|2}}}}{{=}}1}} so if you want to rotate it by π/4 I guess it would be {{math|{{sfrac|(x cos {{sfrac|π|4}} + y sin {{sfrac|π|4}}){{sup|2}}|2}}-{{sfrac|(y{{sup|2}}cos {{sfrac|π|4}} - x sin {{sfrac|π|4}})|b{{sup|2}}}}{{=}}1}} or something like that? ] (] • ]) 14:28, 19 January 2025 (UTC)
::Thank you. Yes I tried something like that but while I could fix the knee of the curve in one place, I couldn't keep the asymptotes 90° apart at the same time and adjust the sharpness of the knee. ~] <small>(])</small> 17:32, 19 January 2025 (UTC)
:::Oh, right, if you want right hyperbolas only then you'd need to hold the eccentricity constant as well at {{sqrt|2}} which means they're all the same shape and you're just rescaling it by a factor. The easiest equation for that is probably {{sfrac|xy|A}} = 1 (or equivalently, y = A/x) which has a vertex at ({{sqrt|A}}, {{sqrt|A}}). Translating ({{sqrt|A}}, {{sqrt|A}}) to (1, 1) would make the equation {{math|y {{=}} {{sfrac|A|x+{{sqrt|A}}-1}}-{{sqrt|A}}+1, A ∈ (0, 1]}}. ] (] • ]) 01:48, 20 January 2025 (UTC)
::::Yes, that holds the knee at (1,1) but it also moves the asymptotes so that the positive side of the function no longer approaches the axis, but instead approaches a constant <math>1-\sqrt a</math>. I did finally come up with something (see below) but when applying it to metaballs, it didn't have the effect I had hoped for. ~] <small>(])</small> 23:21, 20 January 2025 (UTC)

: I would start from 1/x but use a varying exponent. 1/x is x^-1, i.e. with an exponent of minus one. Larger negative exponents will I think do as you describe. X ^ -2 or 1/x^2 will give a twice as steep/sharp slope at (1, 1) and go to zero more rapidly. You can try other values, including non-integer values, for the exponent. --] (]) 15:53, 19 January 2025 (UTC)
::Well, that's the first thing I tried, but I need the slope at (1,1) to be -1 always. Forgot to mention that; I'll correct it above. Varying the exponent doesn't give me that, it moves the knee of the curve off (1,1). ~] <small>(])</small> 17:27, 19 January 2025 (UTC)
:::If your threshold is set to <math>1,</math> the precise function values for <math>x<1</math> are immaterial, as long as they are at least as large as the threshold. So only the shape of the tail for <math>x>1</math> is relevant. To get long-distance connections, this tail should be fat.
:::The notion of "knee" is not very useful IMO. As <math>\alpha\downarrow 0,</math> the fatness of the tail of <math>f(x)=x^{{-}\alpha}</math> increases. The slope of the graph of <math>f(x)</math> at <math>x=1</math> equals <math>f'(1)=-\alpha,</math> so when <math>\alpha</math> approaches <math>0</math> the graph becomes increasingly horizontal in that neighbourhood, ultimately just below <math>y=1.</math> A side effect of fat tails is that two blobs, approaching each other, will start sprouting "feelers" towards each other well before these turn into a connection, and more so with a shallow slope. I suppose this is undesirable. It is possible to keep a steeper slope like <math>{-}1</math> while having a fat tail, but then a more intricate function definition will be needed.
:::Our article mentions the criterion function <math>\textstyle\sum_{i} \mbox{metaball}_i(x,y,z).</math> Consider two blobs A and B that are not far apart, but too far to have a connection. Now, if a third blob moves toward the area in the middle between A and B, its contribution to the criterion function may cause it to locally exceed the threshold. This is especially likely when you have fat tails. If this is unwanted, a better criterion may be
::::<math>\max_{i\ne j}~(\mbox{metaball}_i(x,y,z)+\mbox{metaball}_j(x,y,z)) \geq \mbox{threshold}.</math>
:::Can you reveal at which distance (between their centres) two blobs should become connected? Then we can (perhaps) give a better response. Even better, a series of sketches of blobs coming increasingly closer and becoming distended before mating. Also, can you control the criterion function or only the threshold and individual metaball functions?
:::&nbsp;--] 17:51, 19 January 2025 (UTC)
::::Because I'm writing the code myself (this is an ] project), I have control over everything, so I can make any criterion function with any number of inputs. I already completed the marching cube isosurface algorithm and it's working well. Here's an , and an , which I used to test my isosurface module.
::::The notion of the "knee" is necessary to establish a threshold higher than 1 that still maintains a reasonable ball radius without clipping it to some minimum value, while at the same time having a fat tail at x>1 that allows two balls to combine at long distances without the ball radius growing too much. The function <math>f(x)=x^{-a}</math> causes the diameter of the ball to shrink too far when isolated from other balls, and grow too fast when in proximity to other balls. That's why I'm looking for a function that would be, at the extreme, nearly vertical at x<1 and nearly horizontal at x>1 (both legs connected by a small-radius knee), with each leg approaching the axis at the same rate.
::::Picture two balls, say with an approximate radius of 10 (give or take), 70 units apart, and connected by a long tendril, like two wads of bubblegum stretched far apart after being stuck together. That's kind of what I'm going for. ~] <small>(])</small> 23:38, 19 January 2025 (UTC)
:::::The x-scale and y-scale have no a priori established relationship. All ascending exponential curves <math>(y=a\exp(\lambda x)</math> with positive <math>a</math> and <math>\lambda)</math> are ]. You can define the "knee" of a curve as the point where the angle of the slope equals <math>45^\circ,</math> but where this is depends on the ratio of the x- and y-scale, which is why I doubt the usefulness of the concept without an established relationship between these scales. You can kind of create a relationship by equating the threshold value (measured on the y-scale) with the radius of a typical solitary ball (measured on the x-scale). Then a slope of <math>{-}1</math> means that a 1% increase of the <math>\text{metaball}</math> function means a 1% increase in the radius of the ball.
:::::How wide do you envisage the diameter of the tube at its thinnest? What should we see when these balls are 50 or 100 units apart? And what would you use as the threshold? &nbsp;--] 01:51, 20 January 2025 (UTC)
::::::I don't have any preconceived notions of the width of the tube at its thinnest, and I expect the balls to separate and join like regular metaballs, just at bigger distances. The answers depend on my experimentation now that I have finally found a function that does what I want:
:::::::<math>f(x)=\left(a\left(\max\left(x,d\right)-d\right)\right)^{-\frac{1}{a}}, \text{ where } d=1-\frac{1}{a}</math>
::::::(on Desmos ). The vertical asymptote is always at <math>x=d</math> and stays in the range <math>0<x<1</math>, the horizontal asymptote is always <math>y=0</math>, the function always passes through (1,1) and the slope at (1,1) is always -1. Increasing <math>a</math> sharpens the corner and thickens the tail. I didn't expect the vertical asymptote would need to move but it should work well for constraining the minimum radius of the metaball. ~] <small>(])</small> 02:45, 20 January 2025 (UTC)
:::::::...and, in practice, it turns out not much different than the usual metaball functions. Oh well. ~] <small>(])</small> 03:04, 20 January 2025 (UTC)
:::::::When I wrote "at its thinnest", I meant for the case of two balls with a radius of 10 units having their centres 70 units apart. Is it more like 5 units or more like half a unit? &nbsp;--] 10:50, 20 January 2025 (UTC)
::::::::It doesn't matter to me as long as the connection is thinner than the ball on each end, and the connection exists. ~] <small>(])</small> 23:14, 20 January 2025 (UTC)




= January 23 =

Latest revision as of 00:05, 23 January 2025

Welcome to the mathematics section
of the Misplaced Pages reference desk. skip to bottom Select a section: Shortcut Want a faster answer?

Main page: Help searching Misplaced Pages

   

How can I get my question answered?

  • Select the section of the desk that best fits the general topic of your question (see the navigation column to the right).
  • Post your question to only one section, providing a short header that gives the topic of your question.
  • Type '~~~~' (that is, four tilde characters) at the end – this signs and dates your contribution so we know who wrote what and when.
  • Don't post personal contact information – it will be removed. Any answers will be provided here.
  • Please be as specific as possible, and include all relevant context – the usefulness of answers may depend on the context.
  • Note:
    • We don't answer (and may remove) questions that require medical diagnosis or legal advice.
    • We don't answer requests for opinions, predictions or debate.
    • We don't do your homework for you, though we'll help you past the stuck point.
    • We don't conduct original research or provide a free source of ideas, but we'll help you find information you need.


Ready? Ask a new question!


How do I answer a question?

Main page: Misplaced Pages:Reference desk/Guidelines

  • The best answers address the question directly, and back up facts with wikilinks and links to sources. Do not edit others' comments and do not give any medical or legal advice.
See also:


January 8

Even Fermat pseudoprimes

There are infinitely many odd numbers which are Fermat pseudoprimes to all bases coprime to them (the Carmichael numbers), but it seems that all even numbers > 946 are Fermat pseudoprimes to at most 1/8 for the bases coprime to them, is this proven? (Like that all odd numbers are strong pseudoprimes to at most 1/4 for the bases coprime to them) 220.132.216.52 (talk) 12:40, 8 January 2025 (UTC)

For what it's worth, any counterexample >28 must have the form 2 p q {\displaystyle 2pq} where p and q are distinct odd primes such that 2 p q 1 {\displaystyle 2pq-1} is divisible by both ( p 1 ) / 2 {\displaystyle (p-1)/2} and ( q 1 ) / 2 {\displaystyle (q-1)/2} . Tito Omburo (talk) 18:55, 8 January 2025 (UTC)
If we denote a := gcd ( ( p 1 ) / 2 , ( q 1 ) / 2 ) {\displaystyle a:=\gcd((p-1)/2,(q-1)/2)} such that P := ( p 1 ) / 2 a {\displaystyle P:=(p-1)/2a} and Q := ( q 1 ) / 2 a {\displaystyle Q:=(q-1)/2a} are coprime, then ( p 1 ) / 2 = a P {\displaystyle (p-1)/2=aP} and ( q 1 ) / 2 = a Q {\displaystyle (q-1)/2=aQ} divides 2 p q 1 = 2 ( 2 a P + 1 ) ( 2 a Q + 1 ) 1 = 8 a 2 P Q + 4 a P + 4 a Q + 1 {\displaystyle 2pq-1=2(2aP+1)(2aQ+1)-1=8a^{2}PQ+4aP+4aQ+1} . Naturally, this implies a P {\displaystyle aP} divides 4 a Q + 1 {\displaystyle 4aQ+1} and a Q {\displaystyle aQ} divides 4 a P + 1 {\displaystyle 4aP+1} , which further implies that a = 1 {\displaystyle a=1} and thus ( p 1 ) / 2 {\displaystyle (p-1)/2} and ( q 1 ) / 2 {\displaystyle (q-1)/2} are coprime. So we must find (odd) coprime P , Q {\displaystyle P,Q} such that P | 4 Q + 1 {\displaystyle P|4Q+1} and Q | 4 P + 1 {\displaystyle Q|4P+1} , and from there 2 P + 1 {\displaystyle 2P+1} and 2 Q + 1 {\displaystyle 2Q+1} must be prime. GalacticShoe (talk) 16:13, 16 January 2025 (UTC)
Suppose we have odd coprime P , Q {\displaystyle P,Q} such that P | 4 Q + 1 {\displaystyle P|4Q+1} and Q | 4 P + 1 {\displaystyle Q|4P+1} . Assume WLOG that P < Q {\displaystyle P<Q} . This means that 4 P + 1 {\displaystyle 4P+1} can only be Q {\displaystyle Q} or 3 Q {\displaystyle 3Q} . If 4 P + 1 = Q {\displaystyle 4P+1=Q} , then P | 4 Q + 1 P | 4 ( 4 P + 1 ) + 1 P | 16 P + 5 P = 1 , 5 , Q = 5 , 21 {\displaystyle P|4Q+1\Rightarrow P|4(4P+1)+1\Rightarrow P|16P+5\Rightarrow P=1,5,Q=5,21} . This yields p := 2 P + 1 = 3 , 11 , q := 2 Q + 1 = 11 , 43 {\displaystyle p:=2P+1=3,11,q:=2Q+1=11,43} which both work, giving values 2 p q = 66 , 946 {\displaystyle 2pq=66,946} . If 4 P + 1 = 3 Q {\displaystyle 4P+1=3Q} , then P | 4 ( 4 P + 1 ) / 3 + 1 P | ( 16 P + 7 ) / 3 P | 16 P + 7 P = 1 , 7 {\displaystyle P|4(4P+1)/3+1\Rightarrow P|(16P+7)/3\Rightarrow P|16P+7\Rightarrow P=1,7} . For either value though 4 P + 1 {\displaystyle 4P+1} is not divisible by 3 {\displaystyle 3} , so this doesn't yield any values. We conclude that the only counterexamples greater than 28 {\displaystyle 28} are indeed 66 , 946 {\displaystyle 66,946} . GalacticShoe (talk) 01:32, 17 January 2025 (UTC)
It is notable that 28, 66, 946 are triangular numbers, and their indices (7, 11, 43) are Heegner numbers, is this a coincidence? 220.132.216.52 (talk) 10:59, 17 January 2025 (UTC)
The other triangular numbers whose indices are Heegner numbers are 190 (19), 2278 (67), 13366 (163), but 190 is Fermat pseudoprime only to 1/8 for the bases coprime to it, 2278 is Fermat pseudoprime only to 1/32 for the bases coprime to it, 13366 is Fermat pseudoprime only to 1/16 for the bases coprime to it (8, 32, 16 are powers of 2). 220.132.216.52 (talk) 13:09, 17 January 2025 (UTC)
I seem to know the reason:
(Heegner numbers corresponding to the prime-generating polynomial n^2+n+p, i.e. the number p = (the Heegner number + 1)/4
66 -> 11th triangular number -> 11 and (11+1)/4 = 3 -> 11-1 and 3-1 totally have 2 prime factors of 2 -> 1/(2^2) = 1/4 of the bases coprime to it
190 -> 19th triangular number -> 19 and (19+1)/4 = 5 -> 19-1 and 5-1 totally have 3 prime factors of 2 -> 1/(2^3) = 1/8 of the bases coprime to it
946 -> 43rd triangular number -> 43 and (43+1)/4 = 11 -> 43-1 and 11-1 totally have 2 prime factors of 2 -> 1/(2^2) = 1/4 of the bases coprime to it
2278 -> 67th triangular number -> 67 and (67+1)/4 = 17 -> 67-1 and 17-1 totally have 5 prime factors of 2 -> 1/(2^5) = 1/32 of the bases coprime to it
13366 -> 163rd triangular number -> 163 and (163+1)/4 = 41 -> 163-1 and 41-1 totally have 4 prime factors of 2 -> 1/(2^4) = 1/16 of the bases coprime to it 220.132.216.52 (talk) 13:16, 17 January 2025 (UTC)
@Lambiam: @GalacticShoe: @RDBury: @Bubba73: 220.132.216.52 (talk) 14:45, 16 January 2025 (UTC)

Rectifying latitude

Is it true that using the rectifying latitude with the best sphere radius (possibly not the same radius for all 3) minimizes the worst-case error for distance (%), distance (km) & max km the 2 paths get from each other? (maximum separation between the great circle & the geodesic for the surface of the WGS84 ellipsoid)? Or is another latitude better like the geocentric latitude? (the geocentric latitude can get ~0.2° from the (by far) most kind of used latitude which is more separation than any kind of latitude (besides the Mercator one that's 0° to ∞°)) What's the best radius for each of these 3 metrics & how well do the worst point pairs for these 3 metrics approximate the ellipsoidal trigonometry answer? (the one where the geodesic latA lon A alt0 to latB lonB alt0 is considered perfect accuracy even though most places aren't on the 2D surface) Sagittarian Milky Way (talk) 22:56, 8 January 2025 (UTC)

January 10

Knot equivalence

Our knot theory article gives two definitions, asserted to be equivalent, for when one knot is equivalent to another. Both of these involve auto-homeomorphisms of R 3 {\displaystyle \mathbf {R} ^{3}} .

To me this just kind of feels -- heavy. To move one trefoil knot to another, verifying their equivalence, I apparently have to account for all the rest of space. Is this actually necessary?

Concretely, suppose I define knot equivalence as follows. If K 0 {\displaystyle K_{0}} and K 1 {\displaystyle K_{1}} are two knots, defined as continuous maps from into R 3 {\displaystyle \mathbf {R} ^{3}} that are injective except that K i ( 0 ) = K i ( 1 ) {\displaystyle K_{i}(0)=K_{i}(1)} ( i = 0 , 1 {\displaystyle i=0,1} ), then say K 0 {\displaystyle K_{0}} and K 1 {\displaystyle K_{1}} are equivalent if there is a continuous map f {\displaystyle f} from [ 0 , 1 ] × [ 0 , 1 ] {\displaystyle \times } into R 3 {\displaystyle \mathbf {R} ^{3}} such that:

  • the map x f ( x , 0 ) {\displaystyle x\mapsto f(x,0)} equals K 0 {\displaystyle K_{0}}
  • the map x f ( x , 1 ) {\displaystyle x\mapsto f(x,1)} equals K 1 {\displaystyle K_{1}}
  • for 0 < t < 1 {\displaystyle 0<t<1} , the map x f ( x , t ) {\displaystyle x\mapsto f(x,t)} is injective except that f ( 0 , t ) = f ( 1 , t ) {\displaystyle f(0,t)=f(1,t)}

Is this notion of equivalence the same as the one in the article? --Trovatore (talk) 07:01, 10 January 2025 (UTC)

Since no K t {\displaystyle K_{t}} intersects itself, my intuition tells me there ought to be a lower bound on how close it can come to self-intersection. More precisely, the boundary of the Minkowski sum K t + B δ {\displaystyle K_{t}+B_{\delta }} of K t {\displaystyle K_{t}} and a constant ball B δ {\displaystyle B_{\delta }} with a sufficiently small ( t {\displaystyle t} -independent) radius δ {\displaystyle \delta } should be a torus. Proving this formally may not be easy, but a proof will establish the required ambient isotopy.
If your conjecture is indeed correct – I'm hedging my bet because counterexamples in topology can be quite counterintuitive – it would be amazing if your markedly simpler characterization is not found in the literature.  --Lambiam 10:20, 10 January 2025 (UTC)
I think knot (lol). I believe any nontrivial not is "injectively homotopic" to the unknot. Start with your favorite knot and stretch one arc while compressing the rest so that in the limit the compressed part tends to a point. This can be done injectively. Tito Omburo (talk) 12:03, 10 January 2025 (UTC)
Yeah, that sounds right. Thanks. --Trovatore (talk) 18:22, 10 January 2025 (UTC)
With the R embedding definition you can definitely say that if the complements are not homeomorphic then the knots are inequivalent. That's a useful property since you may be able to show that two knots are different without having to go into the details of knot theory, in fact you can show the trefoil knot is not the unknot with a little algebraic topology. In practice, two knots are equivalent if their diagrams can be transformed into each other by a sequence of Reidemeister moves, so the problem is really to find an intuitive definition that's equivalent. As Lambiam pointed out, topology can be counterintuitive, and perhaps "injectively homotopic" = "homotopic" is an example of that. --RDBury (talk) 00:40, 11 January 2025 (UTC)
Think yourself lucky. Maybe. When I had a look at knot theory a while ago the definition was in terms of a finite set of straight lines and Reidemeister moves, and things like infinite knots were an extension. And then there were the extensions like knotting a sphere in 4d. NadVolum (talk) 14:50, 10 January 2025 (UTC)

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 {\displaystyle S} of numbers whose lcm equals a given number n {\displaystyle n} . Let a {\displaystyle a} and b {\displaystyle b} be two different elements of that set that are not coprime. This means that they have nontrivial factors p α {\displaystyle p^{\alpha }} and p β {\displaystyle p^{\beta }} in which p {\displaystyle p} is a prime number and α {\displaystyle \alpha } and β {\displaystyle \beta } are at least 1. {\displaystyle 1.} Assume wlog that α β . {\displaystyle \alpha \leq \beta .} Then the lcm of set S {\displaystyle S'} oobtained by replacing a {\displaystyle a} by a = a / p α {\displaystyle a'=a/p^{\alpha }} is the same as that of S . {\displaystyle 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 , {\displaystyle \textstyle \prod ,} where { a 1 , a 2 , . . . a k } = a 1 a 2 a k . {\displaystyle \textstyle \prod \{a_{1},a_{2},...a_{k}\}=a_{1}a_{2}\cdots a_{k}.}
Given the factorization n = p 1 m 1 p 2 m 2 . . . p k m k , {\displaystyle n=p_{1}^{m_{1}}p_{2}^{m_{2}}...p_{k}^{m_{k}},} one possible choice for S {\displaystyle S} is the set F = { p 1 m 1 , p 2 m 2 , . . . , p k m k } . {\displaystyle F=\{p_{1}^{m_{1}},p_{2}^{m_{2}},...,p_{k}^{m_{k}}\}.} Given a partition P {\displaystyle {\mathcal {P}}} of F , {\displaystyle F,} define ( P ) {\displaystyle \textstyle \prod ^{\ast }\!({\mathcal {P}})} by
( P ) = { X | X P } . {\displaystyle \textstyle \prod ^{\ast }\!({\mathcal {P}})=\{\textstyle \prod X\,|\,X\in {\mathcal {P}}\}.}
Then ( ( P ) ) = n , {\displaystyle \textstyle \prod (\textstyle \prod ^{\ast }\!({\mathcal {P}}))=n,} so for each partition P , {\displaystyle {\mathcal {P}},} the set ( P ) {\displaystyle \textstyle \prod ^{\ast }\!({\mathcal {P}})} is also a candidate for S . {\displaystyle S.} Conversely, each set S {\displaystyle S} of mutually coprime numbers such that S = n {\displaystyle \textstyle \prod S=n} can be written as ( P ) {\displaystyle \textstyle \prod ^{\ast }\!({\mathcal {P}})} for some partition P {\displaystyle {\mathcal {P}}} of F . {\displaystyle F.} The original F {\displaystyle F} itself equals ( { { p 1 m 1 } , { p 2 m 2 } , . . . , { p k m k } } ) . {\displaystyle \textstyle \prod ^{\ast }\!(\{\{p_{1}^{m_{1}}\},\{p_{2}^{m_{2}}\},...,\{p_{k}^{m_{k}}\}\}).}
Instead of partitioning F {\displaystyle F} and then applying ( ) {\displaystyle \textstyle \prod ^{\ast }\!(\cdot )} to the partition, we can obtain the same candidates for S {\displaystyle S} by starting with S 0 = F {\displaystyle S_{0}=F} and obtaining S n + 1 {\displaystyle S_{n{+}1}} from S n {\displaystyle S_{n}} — provided that S n {\displaystyle S_{n}} is not a singleton set — by choosing two elements from S n {\displaystyle S_{n}} 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 = 2 4 3 2 5 1 7 1 , {\displaystyle 5040=2^{4}3^{2}5^{1}7^{1},} so S 0 = { 2 4 , 3 2 , 5 1 , 7 1 } = { 16 , 9 , 5 , 7 } . {\displaystyle S_{0}=\{2^{4},3^{2},5^{1},7^{1}\}=\{16,9,5,7\}.}
S 0 = { 5 , 7 , 9 , 16 } {\displaystyle S_{0}=\{5,7,9,16\}} ; the smallest two elements are 5 {\displaystyle 5} and 7 , {\displaystyle 7,} so S 1 = { 5 × 7 , 9 , 16 } = { 35 , 9 , 16 } . {\displaystyle S_{1}=\{5{\times }7,9,16\}=\{35,9,16\}.}
S 1 = { 9 , 16 , 35 } {\displaystyle S_{1}=\{9,16,35\}} ; the smallest two elements are 9 {\displaystyle 9} and 16 , {\displaystyle 16,} so S 2 = { 9 × 16 , 35 } = { 144 , 35 } . {\displaystyle S_{2}=\{9{\times }16,35\}=\{144,35\}.}
S 2 = { 35 , 144 } {\displaystyle S_{2}=\{35,144\}} ; the smallest two elements are 35 {\displaystyle 35} and 144 , {\displaystyle 144,} so S 3 = { 35 × 144 } = { 5040 } . {\displaystyle S_{3}=\{35{\times }144\}=\{5040\}.}
If the largest element must not exceed the square root of n , {\displaystyle n,} the set S {\displaystyle S} has to contain at least three elements, so with k {\displaystyle k} being the number of distinct prime factors, there is no point in going farther than S k 3 . {\displaystyle S_{k-3}.}  --Lambiam 23:11, 17 January 2025 (UTC)

January 17

Probability questions

First Question: You walk into a room filled with random people. You want to find another person in that room who has the same birthday as you. For example, June 15. How many people would need to be in the room? How do you go about solving this question?

Second Question: Same as above. However, you want to find another person in that room who has the same birth date as you. For example, June 15, 1985. How many people would need to be in the room? How do you go about solving this question?

Thanks, 32.209.69.24 (talk) 08:08, 17 January 2025 (UTC)

These are both different from the well-known birthday problem.
For the first, let's ignore the possibility of people born on February 29 in a leap year, so there are only 365 possible birthdays. Let us also assume that all 365 birthdays are equally likely, so for any fixed day D of the year, such as January 17, the probability p {\displaystyle p} that a randomly selected person's birthday falls on that very same day is equal to 1 365 . {\displaystyle {\tfrac {1}{365}}.} The probability that this person's birthday falls on a different day is then equal to the complement 1 p = 364 365 . {\displaystyle 1{-}p={\tfrac {364}{365}}.}
It is easier now to consider the complementary question: What is the probability q N {\displaystyle q_{N}} that none among N {\displaystyle N} randomly selected persons has a given birthday D. The answer to the original question is then given by its complement, 1 q N . {\displaystyle 1-q_{N}.}
If N = 0 , {\displaystyle N=0,} there is no one whose birthday could be D, so q 0 = 1. {\displaystyle q_{0}=1.} If N = 1 , {\displaystyle N=1,} with just one other (randomly selected) person present, q 1 {\displaystyle q_{1}} is just the probability that this person's birthday is D, so q 1 = 1 p . {\displaystyle q_{1}=1{-}p.} Now suppose we already know q n {\displaystyle q_{n}} for some value of n . {\displaystyle n.} Then we can determine q n + 1 {\displaystyle q_{n{+}1}} by considering that the joint probability of two independent events co-occurring is equal to the product of their individual probabilities. Therefore q n + 1 = q n × q 1 . {\displaystyle q_{n{+}1}=q_{n}\times q_{1}.} We can conclude that in general
q n = q 1 n = ( 1 p ) n = ( 364 365 ) n . {\displaystyle q_{n}=q_{1}^{n}=(1{-}p)^{n}=({\tfrac {364}{365}})^{n}.}
The probability of the same birthday as yours among a random selection of N {\displaystyle N} people is therefore 1 ( 364 365 ) N . {\displaystyle 1-({\tfrac {364}{365}})^{N}.}
Now note that as n {\displaystyle n} gets larger and larger, the value of q n {\displaystyle q_{n}} gets smaller and smaller, but it never reaches zero exactly. Even if N = 365 , {\displaystyle N=365,} we find that 1 ( 364 365 ) 365 = 0.632625...   . {\displaystyle 1-({\tfrac {364}{365}})^{365}=0.632625...~.} To get to 99%, N {\displaystyle N} should be at least 1679 {\displaystyle 1679} ; 1 ( 364 365 ) 1678 = 0.98998... {\displaystyle 1-({\tfrac {364}{365}})^{1678}=0.98998...} falls still short, but 1 ( 364 365 ) 1679 = 0.99001... {\displaystyle 1-({\tfrac {364}{365}})^{1679}=0.99001...} reaches the target.
The approach assumes that the possible birthdays are uniformly distributed over the population, which is not the case in reality. However, to account for this, you only need to know the real value of p {\displaystyle p} for day D and not for any other day.
To find a somewhat realistic answer to the second question is harder. In reality, the people in a room will not be a random sample from the total population. People below the age of 3 and over the age of 97 will be underrepresented, so if your own birthdate is January 17, 1925, the likelihood of today finding someone present to jointly celebrate your 100th birthday with is much smaller than that of finding a co-celebrant for your 35th birthday if your birthdate is January 17, 1990. The notion of "random selection" is not clearly applicable. You need to know at least the distribution of birthyears among the population from which the people in the room are selected, accounting both for the actual population pyramid and for age-based selection bias. When you have determined p Y , {\displaystyle p_{\text{Y}},} the probability that a person randomly selection from those present in the room has the same birthyear Y as you, instead of p = 1 / 365 {\displaystyle p=1/365} you can use p = p Y / 365 {\displaystyle p=p_{\text{Y}}/365} and proceed as above.  --Lambiam 11:44, 17 January 2025 (UTC)
Wow. Very thorough, detailed, and comprehensive. You certainly have a gift for math. Thanks! Let me read this over and process it all. I'll need a day or two. Thanks so much. 32.209.69.24 (talk) 08:39, 18 January 2025 (UTC)

January 18

Is it possible to tweak Kunerth's algorithm so that it returns a different possible solution ?

The Kunerth's algorithm is a non generic modular square root algorithm that compute modular square roots without factoring the modulus…

Let’s say I’ve a valid input for which the algorithm can return a solution, is it possible to tweak it so that it returns a different possible solution ? So far I only found how to modify it to return the modular inverse… — Preceding unsigned comment added by 2A01:E0A:401:A7C0:9D9:50BB:6262:E787 (talk) 06:39, 18 January 2025 (UTC)

This question has also been asked (and answered) at User talk:Endo999 § A question about Kunerth’s algorithm….
Being unfamiliar with Kunerth's algorithm I tried to understand it from our article, but the presentation is so confusing (also in the Example section) that I kept getting lost.  --Lambiam 09:21, 18 January 2025 (UTC)
Personally, I used this implementation to understand it. As the article do contains errors, my question is merely how to modify the implementation in order to get a different valid ouput for the same input 2A01:E0A:401:A7C0:9D9:50BB:6262:E787 (talk) 14:15, 18 January 2025 (UTC)
Regarding the answer I received on the other page, it seems to me the author doesn’t fully understand the algorithm. 2A01:E0A:401:A7C0:416E:83F1:C73F:88BD (talk) 12:46, 20 January 2025 (UTC)

January 19

Looking for a function like y=1/x with adjustable corner curve

I'm trying to figure out how to make a function that passes through (1,1) like y = 1 / x {\displaystyle y=1/x} (I'm interested only in x>0), but lets me adjust the sharpness of that "corner" at (1,1), thereby increasing or decreasing the tail thickness of the curve while still passing through (1,1), with the tails remaining between 0<y<1 and 0<x<1, and the slope at (1,1) remaining -1.

My application for this is to create metaballs that can maintain a reasonably small radius while having a blobby connection to other metaballs at long distances. I've been experimenting with Desmos to come up with such a function but haven't hit on anything yet. ~Anachronist (talk) 09:11, 19 January 2025 (UTC)

The usual equation for a hyperbola symmetric about the y axis passing through (a, 0) would be ⁠x/a⁠-⁠y/b⁠=1 so if you want to rotate it by π/4 I guess it would be ⁠(x cos ⁠π/4⁠ + y sin ⁠π/4⁠)/2⁠-⁠(ycos ⁠π/4⁠ - x sin ⁠π/4⁠)/b⁠=1 or something like that? Alpha3031 (tc) 14:28, 19 January 2025 (UTC)
Thank you. Yes I tried something like that but while I could fix the knee of the curve in one place, I couldn't keep the asymptotes 90° apart at the same time and adjust the sharpness of the knee. ~Anachronist (talk) 17:32, 19 January 2025 (UTC)
Oh, right, if you want right hyperbolas only then you'd need to hold the eccentricity constant as well at √2 which means they're all the same shape and you're just rescaling it by a factor. The easiest equation for that is probably ⁠xy/A⁠ = 1 (or equivalently, y = A/x) which has a vertex at (√A, √A). Translating (√A, √A) to (1, 1) would make the equation y = ⁠A/x+√A-1⁠-√A+1, A ∈ (0, 1]. Alpha3031 (tc) 01:48, 20 January 2025 (UTC)
Yes, that holds the knee at (1,1) but it also moves the asymptotes so that the positive side of the function no longer approaches the axis, but instead approaches a constant 1 a {\displaystyle 1-{\sqrt {a}}} . I did finally come up with something (see below) but when applying it to metaballs, it didn't have the effect I had hoped for. ~Anachronist (talk) 23:21, 20 January 2025 (UTC)
I would start from 1/x but use a varying exponent. 1/x is x^-1, i.e. with an exponent of minus one. Larger negative exponents will I think do as you describe. X ^ -2 or 1/x^2 will give a twice as steep/sharp slope at (1, 1) and go to zero more rapidly. You can try other values, including non-integer values, for the exponent. --2A04:4A43:909F:F990:5C10:A535:8952:E94D (talk) 15:53, 19 January 2025 (UTC)
Well, that's the first thing I tried, but I need the slope at (1,1) to be -1 always. Forgot to mention that; I'll correct it above. Varying the exponent doesn't give me that, it moves the knee of the curve off (1,1). ~Anachronist (talk) 17:27, 19 January 2025 (UTC)
If your threshold is set to 1 , {\displaystyle 1,} the precise function values for x < 1 {\displaystyle x<1} are immaterial, as long as they are at least as large as the threshold. So only the shape of the tail for x > 1 {\displaystyle x>1} is relevant. To get long-distance connections, this tail should be fat.
The notion of "knee" is not very useful IMO. As α 0 , {\displaystyle \alpha \downarrow 0,} the fatness of the tail of f ( x ) = x α {\displaystyle f(x)=x^{{-}\alpha }} increases. The slope of the graph of f ( x ) {\displaystyle f(x)} at x = 1 {\displaystyle x=1} equals f ( 1 ) = α , {\displaystyle f'(1)=-\alpha ,} so when α {\displaystyle \alpha } approaches 0 {\displaystyle 0} the graph becomes increasingly horizontal in that neighbourhood, ultimately just below y = 1. {\displaystyle y=1.} A side effect of fat tails is that two blobs, approaching each other, will start sprouting "feelers" towards each other well before these turn into a connection, and more so with a shallow slope. I suppose this is undesirable. It is possible to keep a steeper slope like 1 {\displaystyle {-}1} while having a fat tail, but then a more intricate function definition will be needed.
Our article mentions the criterion function i metaball i ( x , y , z ) . {\displaystyle \textstyle \sum _{i}{\mbox{metaball}}_{i}(x,y,z).} Consider two blobs A and B that are not far apart, but too far to have a connection. Now, if a third blob moves toward the area in the middle between A and B, its contribution to the criterion function may cause it to locally exceed the threshold. This is especially likely when you have fat tails. If this is unwanted, a better criterion may be
max i j   ( metaball i ( x , y , z ) + metaball j ( x , y , z ) ) threshold . {\displaystyle \max _{i\neq j}~({\mbox{metaball}}_{i}(x,y,z)+{\mbox{metaball}}_{j}(x,y,z))\geq {\mbox{threshold}}.}
Can you reveal at which distance (between their centres) two blobs should become connected? Then we can (perhaps) give a better response. Even better, a series of sketches of blobs coming increasingly closer and becoming distended before mating. Also, can you control the criterion function or only the threshold and individual metaball functions?
 --Lambiam 17:51, 19 January 2025 (UTC)
Because I'm writing the code myself (this is an OpenSCAD project), I have control over everything, so I can make any criterion function with any number of inputs. I already completed the marching cube isosurface algorithm and it's working well. Here's an example of metaballs I made, and an example of a manifold thick gyroid surface, which I used to test my isosurface module.
The notion of the "knee" is necessary to establish a threshold higher than 1 that still maintains a reasonable ball radius without clipping it to some minimum value, while at the same time having a fat tail at x>1 that allows two balls to combine at long distances without the ball radius growing too much. The function f ( x ) = x a {\displaystyle f(x)=x^{-a}} causes the diameter of the ball to shrink too far when isolated from other balls, and grow too fast when in proximity to other balls. That's why I'm looking for a function that would be, at the extreme, nearly vertical at x<1 and nearly horizontal at x>1 (both legs connected by a small-radius knee), with each leg approaching the axis at the same rate.
Picture two balls, say with an approximate radius of 10 (give or take), 70 units apart, and connected by a long tendril, like two wads of bubblegum stretched far apart after being stuck together. That's kind of what I'm going for. ~Anachronist (talk) 23:38, 19 January 2025 (UTC)
The x-scale and y-scale have no a priori established relationship. All ascending exponential curves ( y = a exp ( λ x ) {\displaystyle (y=a\exp(\lambda x)} with positive a {\displaystyle a} and λ ) {\displaystyle \lambda )} are similar. You can define the "knee" of a curve as the point where the angle of the slope equals 45 , {\displaystyle 45^{\circ },} but where this is depends on the ratio of the x- and y-scale, which is why I doubt the usefulness of the concept without an established relationship between these scales. You can kind of create a relationship by equating the threshold value (measured on the y-scale) with the radius of a typical solitary ball (measured on the x-scale). Then a slope of 1 {\displaystyle {-}1} means that a 1% increase of the metaball {\displaystyle {\text{metaball}}} function means a 1% increase in the radius of the ball.
How wide do you envisage the diameter of the tube at its thinnest? What should we see when these balls are 50 or 100 units apart? And what would you use as the threshold?  --Lambiam 01:51, 20 January 2025 (UTC)
I don't have any preconceived notions of the width of the tube at its thinnest, and I expect the balls to separate and join like regular metaballs, just at bigger distances. The answers depend on my experimentation now that I have finally found a function that does what I want:
f ( x ) = ( a ( max ( x , d ) d ) ) 1 a ,  where  d = 1 1 a {\displaystyle f(x)=\left(a\left(\max \left(x,d\right)-d\right)\right)^{-{\frac {1}{a}}},{\text{ where }}d=1-{\frac {1}{a}}}
(on Desmos here). The vertical asymptote is always at x = d {\displaystyle x=d} and stays in the range 0 < x < 1 {\displaystyle 0<x<1} , the horizontal asymptote is always y = 0 {\displaystyle y=0} , the function always passes through (1,1) and the slope at (1,1) is always -1. Increasing a {\displaystyle a} sharpens the corner and thickens the tail. I didn't expect the vertical asymptote would need to move but it should work well for constraining the minimum radius of the metaball. ~Anachronist (talk) 02:45, 20 January 2025 (UTC)
...and, in practice, it turns out not much different than the usual metaball functions. Oh well. ~Anachronist (talk) 03:04, 20 January 2025 (UTC)
When I wrote "at its thinnest", I meant for the case of two balls with a radius of 10 units having their centres 70 units apart. Is it more like 5 units or more like half a unit?  --Lambiam 10:50, 20 January 2025 (UTC)
It doesn't matter to me as long as the connection is thinner than the ball on each end, and the connection exists. ~Anachronist (talk) 23:14, 20 January 2025 (UTC)



January 23

Categories:
Misplaced Pages:Reference desk/Mathematics: Difference between revisions Add topic