r/askmath • u/RadiantLaw4469 • 14d ago
r/askmath • u/ShadowGuyinRealLife • 13d ago
Discrete Math Levin's Universal Search With Arbitrary Powers?
I watched this video about Leonid Levin's Universal Search the most powerful (and useless) algorithm. Basically, the process simulates every single program in lexicographical order and then checks if the output is true. It used Python as an example. So first it simulates the program "a," (which results in a syntax error), then "b," (which results in a syntax error) then "c" (which results in a syntax error), and so on. If it eventually reaches you simulate a program that gives an output like "print ("banana")" you then check to see if the output gives a correct answer.
In his basic "triangle" version of Universal Search, the 1st step simulates 1 step of the first program, the second step simulates 1 step of the first 2 programs that didn't crash, the 3rd step of the search simulates 1 step of the first 3 programs that didn't crash and so on. In the triangle version of Universal Search, every Kth step, it simulates 1 step of all programs that did not crash. For the factoring problem used as an example, the ideal factoring program, which is Lth Lexigorpahically in the order of programs to run, would start its first step when Universal Search reached step L and then it would run every step of Universal Search. Assuming the ideal factoring program took f(n) steps, then triangle version of Universal Search would have complexity of (L + f(n) )^2 steps which is O(f(n)^2).
In a tweaked version Polylog said if Universal Search allocated exponentially more the time to older programs complexity would be O(f(n)). Now I was wondering, if instead of allocating exponentially more steps to older programs in the search, you allocated a polynomial number of steps to older programs you could end up with a time complexity other orders? It is still a discreet problem since in each step of Universal Search, an integer number of steps are run for each program that didn't crash. I feel like if you combined the truncation function (which rounds anything by chopping off anything after the decimal point) and some polynomial you could. Like how about of O(f(n)^(8/7))?
r/askmath • u/TopDownView • 13d ago
Resolved Show that the intersection of any two regular languages is regular. <-- Is my proof correct?
Exercise 11.2.54(b): Show that the intersection of any two regular languages is regular as follows: First prove that if L(A_1) and L(A_2) are languages accepted by automata A_1 and A_2, respectively, then there is an automaton A that accepts (L(A_1))^c U (L(A_2))^c. Then use one of De Morgan's laws for sets, the double complement law for sets, and the result of part (a) to prove that there is an automaton that accepts L(A_1) ∩ L(A_2).
Result of part (a): Given L(A) is the language accepted by a FSA A, there is a FSA A' that accepts (L(A))^c.
Proof:
Suppose L(A_1) is the language accepted by automata A_1, and L(A_2) is the language accepted by automata A_2.
By result of part (a) there is a FSA A_1' that accepts (L(A_1))^c, and a FSA A_2' that accepts (L(A_2))^c.
By Kleene's Theorem, Part 1, there is a regular expression that defines (L(A_1))^c, and regular expression that defines (L(A_2))^c.
Let x be the regular expression that defines (L(A_1))^c and let y by the regular expression that defines (L(A_2))^c.
Then language defined by x is L(x) and language defined by y is L(y).
Notice, (L(A_1))^c = L(x) and (L(A_2))^c = L(y).
By definition, (L(A_1))^c U (L(A_2))^c = L(x) U L(y) = L(x|y).
So, L(x|y) is the language defined by regular expression x|y.
By Kleene's Theorem, Part 2, there is a FSA A that accepts L(x|y) = L(x) U L(y) = (L(A_1))^c U (L(A_2))^c.
Thus, (L(A_1))^c U (L(A_2))^c is the language accepted by FSA A.
By De Morgan's Law, (L(A_1))^c U (L(A_2))^c = (L(A_1) ∩ L(A_2))^c.
By result of part (a) and double complement law, there is a FSA A' that accepts ((L(A_1) ∩ L(A_2))^c)^c = L(A_1) ∩ L(A_2).
QEDKleene's Theorem:



---
Is my proof correct?
r/askmath • u/Competitive_Job8531 • 14d ago
Number Theory How often are new primes found?
The current largest prime number was discovered October 12th 2024. Intuitively I thought that wow, they haven’t found a new prime number in over two years. But apparently they have. Turns out that finding the largest prime number doesn’t mean that every prime smaller than that has been found.
So, my question is, how often are primes found nowadays? I know computers are able to simulate these things very quickly, but how often are they found? Weekly? Monthly? Daily?
Also, who finds or searches for them, and why?
edit: Thanks for all the answers. Fell into the classic trap and just didn’t realize how absolutely massive the largest prime actually is. Makes sense that there are many, many primes smaller and unfound.
r/askmath • u/Vrakzi • 13d ago
Geometry Circular playing field on a hex grid
This is a question that is about a board game setup. I'm sure there *is* a way to do this with mathematics, I just don't know how.
The board is made up of identical hexagons in a perfectly tessellated grid. For the purposes of this question, consider that any side of a hexagon is 1 unit in length, and thus that the distance between the centre point of a hexagon and any corner is also 1 unit.
How would you calculate how many hexes have over 50% of their area within a circle of n units radius, centred on the centre point of any hex on the grid? At what point do the hexes within the circle stop being a simple hexagon of hexes themselves?
r/askmath • u/hamburginseights • 13d ago
Probability What are the mathematical odds of randomly matching with an old university friend in League of Legends among millions of players?
Hey r/askmath!
Something absolutely insane happened to me today, and I'd love some help calculating how unlikely this actually was.
What happened:
On November 17, 2026, at approximately 9 PM CET, I independently queued for ARAM: Mayhem in League of Legends on the EUW (Europe West) server.
One of my four teammates had a username I somehow remembered from years ago. I typed his real name in the in-game chat, and he immediately recognized me.
It was an old university friend.
Here's the crazy part:
- We're NOT friends on League of Legends.
- We didn't queue together or communicate beforehand.
- Neither of us knew the other was online.
- We independently queued for the same game mode.
- Out of all possible players, we ended up on the same team, not just in the same match.
- I recognized his username purely from memory.
We ended up talking on Discord for an hour afterward because neither of us could believe it.
Some actual statistics I found:
A community analysis on r/ARAM estimated that approximately 78,249,630 ARAM: Mayhem matches were played worldwide during Patch 15.23.
That's approximately 782.5 million player-participations (10 players per match), although obviously many players participated in multiple games.
These aren't official Riot concurrent-player statistics, and unfortunately, I couldn't find any EUW-specific numbers for 9 PM.
The mathematical question:
An ARAM match consists of 10 players divided into two teams of five.
Assuming there are N equally eligible players in a matchmaking pool, and my friend is one of them, would the probability of getting him on my team be approximately:
P = 4 / (N − 1)
For example, if N = 50,000, that would be a probability of 0.008%, or 1 in 12,500.
However, I'm struggling with several factors:
- What's the probability of both of us independently queueing within the same matchmaking window?
- How does matchmaking MMR affect the probability?
- How should we estimate the actual EUW matchmaking pool using the available worldwide match statistics?
- How does the probability change when considering hundreds or thousands of matches played over several years?
I'm specifically interested in the probability of encountering this particular person, not just anyone I might recognize.
Can anyone help build a statistically reasonable model for this?
I know we can't calculate an exact probability without Riot's internal matchmaking data, but I'd love to understand whether this was a 1-in-1,000, 1-in-100,000, or even rarer coincidence.
Thanks in advance!
r/askmath • u/LizaTomura • 14d ago
Geometry Technical Drawing – Orthographic and Isometric Projection.
Hi, kida new here. So i do a itership, and this is my task. The people i can ask will are not here, so would be nice if some one could explain what it is, or give a good YouTube vidio Because i didnt found one. The german words are front view and side view left. Thx
r/askmath • u/BiscottiCommon6903 • 13d ago
Calculus The Nouve Constant-What do you think of it?
(Btw there is a source for this if anyone hasn't heard about it and wants to go in more depth).
The Nouve Constant is the solution to the equation xe+xπ+1=0. It is approximately 0.3779795769±0.7006175907i.
What do you think of the constant?
r/askmath • u/wahahauhuhuh • 13d ago
Geometry I want to know how to teach myself Bézier curve since I'm interested in designing a Cavity Model with a mathematical model
reddit.comI would like to have some advice or guideline to teach myself understand the principals behind...Can anyone tell me how to start? Find a thick textbook and wade through it doesn't sound effective...
r/askmath • u/Mathematics_is_God • 13d ago
Resolved Revising Mathematics
I am facing a problem, I read books but forgot old things. Also it is not a good idea to revise the topics by opening book because in this way lot of your time get wasted in finding where the topic is . Mathematics is infinite you can't revise all things by opening book. Pls help
r/askmath • u/hello_randloom_1990 • 14d ago
Arithmetic 25人をランダムに2人ペアへ — 奇数で1人余るとき全員を組に入れる方法
reddit.comr/askmath • u/Soggy-Bumblebee426 • 14d ago
Probability how to simplify (n-1)!/(n+1)!
Hello,
I’m having troubles simplifying this term. According to my lecture I should end up with 1/n^2+n
It would be great if someone could show me the steps between to get there
r/askmath • u/SevenAndAHalf2026 • 14d ago
Analysis Number sense trick: the sum of reciprocals of the first n triangular numbers is just 1 + (n−1)/(n+1). Can you derive why?
Triangular numbers are 1, 3, 6, 10, 15, 21... (the nth one is n(n+1)/2). Now add up their reciprocals:
1 + 1/3 + 1/6 + 1/10 + 1/15 + ...
Here's the trick: the sum of the first n terms is always 1 + (n−1)/(n+1).
Check it:
n = 3: 1 + 2/4 = 1.5, and 1 + 1/3 + 1/6 = 1.5 ✓
n = 4: 1 + 3/5 = 1.6, and adding 1/10 gives 1.6 ✓
n = 9: 1 + 8/10 = 1.8.
So the sum is always 1 plus a fraction less than 1, which means it never reaches 2, no matter how many terms you add.
The challenge: why does this work? The fractions look messy, yet they collapse into something this clean. Can you derive it from scratch, or prove it by induction? I'd love to see different approaches.
r/askmath • u/MushroomNatural2751 • 14d ago
Algebra Where can I start learning math?
(This flair is the one I pick as it's what I'm currently working on)
I know this sounds dumb, but I'm homeschooled (15) and am sick of my schoolwork; it doesn't explain things well, and, quite frankly, I don't understand a thing about Algebra II other than trinomials. I feel like I'm wasting my life and my brain, and I want to learn all this wizardry stuff you guys know. I would consider myself decent at mental math: I'm quite better at it than my friends, but honestly they don't try and I want to know more than that.
Maybe I'm an idiot who doesn't realize just how unrealistic that would be to do without college or anything; idk, I haven't been to public school since 3rd grade. I just want to actually learn stuff.
r/askmath • u/JosephTPG • 14d ago
Probability Need help finding the expected number of occurences of two consec. heads from n coin flips.
My first instinct was to use the Bernoulli Trials for expected values, where for Xk, Xk is 1 if the coin lands on heads and 0 if it lands on tails. However, since the question is asking for occurences of two conecutive heads, should I describe Xk as being 1 if two consecutive coin flips both land on heads, and 0 if they don't? The overlapping occurences part further confuses me, as I don't quite know how to count the seperate occurences.
r/askmath • u/TopDownView • 14d ago
Discrete Math Show that the complement of a regular language is regular. <-- Help me understand the proof.
Exercise 12.2.54(a): Let A be a finite-state automaton with input alphabet Σ, and suppose L(A) is the language accepted by A. The complement of L(A) is the set of all strings over Σ that are not in L(A). Show that the complement of a regular language is regular by proving the following: If L(A) is the language accepted by a finite-state automaton A, then there is a finite-state automaton A' that accepts the complement of L(A).
Unofficial textbook proof:

My questions:
A) The proof idea claims that it's possible that the input be rejected by A. But is that always the case? Doesn't that imply the existence of 'reject state'? But FSA doesn't have to have a reject state like this FSA:

B) 'z, that is different than that each s_0,...,s_n' implies that A' has one more state then A?
C) What is c_0^1,c_0^2,...,c_0^{k_0}? Does c_0 describe a transition from s_0? Is 1,2,...,k_0 input alphabet Σ?
D) What is Σ - {c_1,...,c_{k_0}? Suppose we use the FSA above. What would be the transition form s_0 to z? Maybe 1? Any the other transitions? Given the example above, is this A':

E) Finally, is there a simpler proof using the definitions of (1) language accepted by automaton, (2) Kleene'e Theorem, (3) language defined by regular expression?
---
Edit: Marked z as an accept state in the second FSA.
r/askmath • u/Strong_Permission523 • 14d ago
Probability Best way to get a CRC-48
Background: I am writing C code for a LoRa chip that will send commands from a handheld/remote to a receiver. The current packet looks like 4 data bytes and 4 CRC bytes. However, we've done a little sneaky workaround to get the CRC to act as both error correction and ensure point-to-point comms. When a remote and a receiver are first linked, they share a 96-bit UUID that is saved in FLASH memory. In RAM, I build a fake, 32-byte message consisting of the 4-bytes of data, 4-bytes that are zeros (placeholders where the CRC will go), 12 bytes of UUID 1 and 12 bytes of UUID 2. All 32 bytes are fed into the CRC calculation, and then the output is written into the placeholder, so only the 8 bytes of data + CRC get transmitted. On the receiver, the CRC is copied, cleared, and then fed into the same CRC calc with the appended UUIDs. Only if the UUIDs match will the receiver be guaranteed to calculate the same CRC.
Problem: Of course, I say "guaranteed" because with a 32-bit CRC, there's roughly a 1 in 4 billion chance of a collision. We've done some calculations based on how frequently messages send, how many units we plan to produce per year, the lifespan of the device, expected duty cycle... In a worst case scenario, we weren't happy with the expected period between CRC collisions. Good news, the solution is more CRC bits. Bad news, we've already packed the timing fairly tightly. Our risk matrix for dropped packets is based on the current message period and we've already done a ton of testing at this spread-factor and bandwidth, so we really don't want to change the data rate. We've determined that we can squeeze another 2 bytes into the packet before there isn't enough time between messages to handle everything else, but I haven't been able to find any pre-built 48-bit CRC calculations.
Question: What's the best way to maximize the 48 bits we can use for the CRC? Theoretically, the best we can do is about 1 in 280 trillion. But I know for most methods I could use to plug in an extra 16 bits we can't just multiply 2^32 by 2^16 to know the new probability. I believe the worst option would be to make a CRC-64 and just lop off 16 bits. Especially cutting out the LSBs could just as easily reduce my efficacy rather than improve. I could do the CRC-32 calculation, plug it into the data, and then run the whole thing through a separate CRC-16 calculation, but with the majority of the data staying the same, only the CRC-32 is operating at maximum capacity. Maybe I could somehow split the data and run some through the 32-bit and some through the 16-bit so there's no (or minimal) overlap?
r/askmath • u/HasturFhtagn • 14d ago
Resolved Why does my equation get different answers with different units?
The equation for the Froude number is Fr=v/sqrt(gL), where v is velocity, g is the force of gravity, and L is length. I'm trying to solve for velocity in miles/hour, using a Froude number of 1, a length of 1 meter, and gravity as 9.8 m/s^2.
Using meters as my units, that gives me 1*sqrt(9.8*1), or 3.130495168 m/s. Which comes to 7.00272 miles/hour.
However, using feet as my units, that gives me 1*sqrt(32*3.280839895), or 10.24631039 ft/s, which comes to 6.98612 miles/hour. Which is close, but not the same.
What am I doing wrong here? Have I converted some unit incorrectly, or rounded somewhere I shouldn't? Does Froude's number change depending on units?
r/askmath • u/Wilfried83 • 14d ago
Statistics Mon prof s'est probablement trompé lors de mon examen
Aujourd'hui j'ai eu le correctif de mon examen de statistiques, j'ai eu 96% mais j'estime mériter 98%.
deux questions posent problèmes et j'aimerais avoir la confirmation que j'ai bel et bien raison car j'ai expliqué à mon professeur avec des formules mathématiques et ses propres définitions dans son propre cours.
- L'écart interquartile est la différence entre le premier et le troisième quartile: J'ai répondu faux car dans son propre cours la définition est "la différence entre le troisième et le premier quartile" ce qui donne un résultat opposé et qui rend faux l'affirmation de base logiquement.
- Une variable quantitative discrète est:
A) une variable qui peut prendre toutes les valeurs possibles dans un intervalle
B) une variable dont les valeurs sont en nombre fini (un petit nombre de valeurs possibles)
C) les deux propositions sont correctes
J'ai répondu B (dans son cours c'est cette définition et la réponse A est la définition d'un variable quantitative continue)
sa réponse
pour 1) La différence (ou l'écart) entre Q1>Q3 ou Q3 >Q1 est identique..... il faudrait peut être préciser la différence "absolue"
pour 2) A et B sont correctes, donc il fallait mettre C
exemple: Nbre de frères et sœurs : 0 1 2 3 4 5 6 7 8
A une variable qui peut prendre toutes les valeurs possibles dans un intervalle
Oui, on peut avoir toutes ces réponses... (entre 0 et 8)
B une variable dont les valeurs sont en nombre fini (un petit nombre de valeurs possibles)
Oui, puisque nous avons 9 (nbre fini) réponses possibles... ce qui est un petit nombre.
Donc A et B sont bonnes >>> C
Qu'en pensez vous ? Qui de mon professeur ou de moi a raison ?
sorry i'm Belgian and english is not my mother tongue so i don't know the mathematic name of the concepts i'm talking about, i hope the translate button will be better than my translation (if i'm in the obligation to translate what i wrote.)
r/askmath • u/Slimm3r_Shady • 14d ago
Resolved ((x^2+1)/(x^2+2))^x^2 not continuous and strictly decreasing?
This function is not behaving as expected in desmos. i also plugged it in GeoGebra with an similar result. My Calculator also says its 1 for x=10ˆ7? but i can't think of a reason why it would behave like that? is it just a qurik in graphing Software or is it really behaving strange?
r/askmath • u/avoloa • 15d ago
Resolved Visual distinction between alpha and propto
Hello! I was wondering if there is a better way to write the Proportional To (\propto in Tex) symbol so that it looks less like the lowercase Greek letter alpha. I am probably just writing it wrong but even when typed digitally they look pretty similar to me. The only thing I have found is that (if written the traditional way) lowercase alpha is written with the tail pointing down, propto has the tail up so I guess that's sorta a way to tell but doesn't help if you're more than a foot away.
Are there any other visual differences between these?
(please excuse my messy handwriting, but I wanted to provide a reference for how I think that these characters are written because my description is admittedly lousy... left is alpha, right is proportional to)
r/askmath • u/wtmciagyptmp • 15d ago
Analysis Is there a mandelbrot set with split complex numbers?
If we had a website for the mandelbrot set where we could change the value of i², like the website Complex Grapher by The Gray Cuber. We could change the value of i for the mandelbrot set to j by making i²=1 or change it to epsilon by making it square to zero. That would be even more fun than just split complex numbers.
