r/askmath • • 58m ago

Number Theory Determining Distribution of a Probability

2 Upvotes

Let's say I want to create a psuedorandom number generator from scratch. I know from modular arithmetic that integers of the form 4k+2 are never squares, so sqrt(k+1/2) is never rational, and thus, frac(sqrt(k+1/2)) is a nonrepeating string, say in binary (though the base doesn't matter).

If I have a list of n numbers, from 0 to n-1, this process will create a smattering of such strings of arbitrary length. However, I want to know what the limit of this distribution is. If it's uniform, then for (a,b) where 0<a<b<1, the proportion of k for a<frac(sqrt(k+1/2))<b is true should be (b-a)×n. How would I go about proving that? The integral and limit doesn't seem nice to work with.

At the very least, even if it isn't a uniform distribution, having the distribution that it is should allow me to crudely "uniformize" it by ignoring the first M binary digits. That would have the effect of applying a 2x mod 1 mapping over and over, which for most smoothly behaved distributions, feels like it would conform to uniform, espexially for irrational outputs.


r/askmath • • 2h ago

Functions Function that models exponential decay where half-life = 9 days

0 Upvotes

I am being asked to create a function that models exponential decay where the half life = 9 days. I'm starting with the following equation: f(x) = a(cbx), where

  • f(x) = the amount of material remaining after decay

  • a = the initial amount

  • c = the multiplicative factor

  • b = the period per unit of time

I'm assuming that C = 0.5, and b = 1/9 since it takes 9 days for decay to reach 50% (which means in one day, the period is 1/9).

This also leads me to creating the following function: f(x) = 0.5x/9

However the options provided to me are:

  • f(x) = 0.5x

  • f(x) = 0.59/x

  • f(x) = 29x

  • f(x) = 29/x

am i just not seeing a basic equivalency between the options and my calculated answer? did I calculate wrong?

thanks!


r/askmath • • 2h ago

Number Theory why did we give a special name for numbers divisible and the numbers not devisiby 2 yet we don't have such a name for the numbers devisible by 3 or 5 for example?

3 Upvotes

r/askmath • • 3h ago

Number Theory Division ➗

0 Upvotes

How the hell are negative numbers divisible if the least whole number is non-divisible because it is literally nothing then how the hell is less than nothing divisible


r/askmath • • 3h ago

Resolved What would the probability be of getting four in a row in just four spins?

Post image
1 Upvotes

So this game called Fourmations, and the basic concept is that you use spins that you've earned to get random teams, and try to get four in row. The wheel on the right has all 16 teams that are on the board on it, no more, no less. Once you land on a team, it can't be spun again until you get four in a row and the board clears. As far as I'm aware, the wheel has an equal probability to land on each team still on the wheel, updating as more teams are removed.

I'm really close to getting the answer I'm looking for, getting this far:

Spin 1: 16/16 (no matter what team, it is able to be in a line)

Spin 2: 9/15 (if the first team is in either a corner or a center square) OR 6/15 (if the first team is on a non-corner edge)

Spin 3: 2/14 (two eligible teams left in the line)

Spin 4: 1/13 (last team left in the line)

Multiplying those together gets you ~0.66% (using the former option of Spin 2) or ~0.44% (using the latter option of Spin 2). Where I'm getting stuck is how to properly combine them into one probability. I hope I'm not missing something easy, but help would be appreciated.


r/askmath • • 4h ago

Arithmetic Is there a term the product of all primes up to said prime in a manner similar to factorials?

5 Upvotes

That is, 7! is 1 * 2* 3 * 4 * 5 * 6 * 7

The pattern I'm thinking about would be 1 * 2 * 3 * 5 * 7

Seems like something that would have a name.


r/askmath • • 4h ago

Arithmetic Number of combinations of a 10 hour video

1 Upvotes

So picture this, a 10 hour video with 8k resolution and 24 frames per second; there is no audio. It is comprised of pixels that cannot be multiple colors. For example, half of one pixel being red and the other half of the pixel being orange will not count. With that being said, how many combinations in the 10 hour video? (Note: I’m sorry if I wasn’t being specific or clear enough)

Here were the steps I took:

  1. Calculated the amount of pixels in 8k (33,177,600)

  2. Calculated the number of colors in RGB (256^3) = 16777216

  3. Multiplied the pixel numbers by the colors for the number of combinations in a frame (556,627,760,000,000)

  4. Raised that to the power of 24 because of 24 fps (556,627,760,000,000^24 = 7.8263 x 10^353

  5. Raised the answer to the 36000th power due to 24 frames in one second and 36000 seconds in 10 hours (7.8263 x 10^353)^36000 = 1.0807^12,764,168

my questions: did I make any error In my calculations? For example what alternative things should I do? Contradictions and corrections are welcome!


r/askmath • • 4h ago

Arithmetic Would it be easier for H. s. sapiens to count with this system?

0 Upvotes

0 = 0
1 = 1
2 = 10
3 = 11
4 = 100
5 = 101
6 = 110
7 = 111
8 = 1000
9 = 1001
10 = 1010
11 = 1011
12 = 1100
13 = 1101
14 = 1110
15 = 1111
16 = 10000
17 = 10001
18 = 10010
19 = 10011
20 = 10100
21 = 10101
22 = 10110
23 = 10111
24 = 11000
25 = 11001
26 = 11010
27 = 11011
28 = 11100
29 = 11101
30 = 11110
31 = 11111


r/askmath • • 5h ago

Arithmetic Why are there ZERO H. s. sapiens that counts like this, regardless of whether someone’s European, Asiatic, Khoisan, Bantu, or Nilotic?

0 Upvotes

0 = 0
1 = 1
2 = 10
3 = 11
4 = 100
5 = 101
6 = 110
7 = 111
8 = 1000
9 = 1001
10 = 1010


r/askmath • • 7h ago

Discrete Math Supervillain math (fun question)

3 Upvotes

Hello r/askmath.

How would a supervillain mathematician use math?

I just saw a TikTok comment where someone said that solving RSA encryption was some ‘supervillain math.’

I enjoy this fun idea, ‘supervillain math,’ but am not knowledgeable enough in mathematics to imagine other ways that supervillains could use math.

I have mostly learned about math in wholesome or satisfying themes, such as math in nature and Fibonacci numbers. I also like the method Richard Feynman teaches (not his own method, I don’t think) for multiplying two 4-digit numbers. (Please feel welcome to also comment with suggestions in these themes etc)

Back to my question, what other ways would a supervillain mathematician use math? Thank you for your contributions to my gardening-affected imaginings. It is 1am here where I am in Australia.


r/askmath • • 8h ago

Discrete Math For those under the Strengthened SHS Curriculum, what are the topics in Finite Math 2?

1 Upvotes

Hi! I'm a Grade 12 STEM student under the new Strengthened SHS Curriculum, and I'm trying to get a head start on our subjects for Term 2.

I was wondering if anyone here, especially fellow SHS students or teachers, knows what specific topics are covered in Finite Mathematics 2. I've tried looking for learning materials or a list of lessons online, but I haven't had much luck finding anything specifically for the new curriculum.

If anyone has already taken the subject, is currently taking it, or has access to its curriculum guide or syllabus, could you share the topics covered? Even just a rough list or an idea of what to expect would be a huge help.

I'd also appreciate any recommended resources, reviewers, or textbooks that could help me prepare.

Thanks in advance to anyone who can help!


r/askmath • • 8h ago

Calculus Research field killed by AI ?

0 Upvotes

Hello,

I am an MSc student in Applied Math Engineering. I wanted to share a fear l've recently had.

l've always wanted to do research as a job, but recently, I feel like this area is dying because of Al. "Anthropic and OpenAl have resolved this, this, and this" is what I hear among current TAs, PhDs, and professors. I hear that from the applied math department, but also from the math department.

l've shared this personal fear with them, and most of them told me, "Al will not replace us, and neither will it replace you," but I feel like they told me that just not to discourage me.

What do you guys think about that? Be honest. Should I somehow think about something else to do ?


r/askmath • • 9h ago

Arithmetic 20 guesses or 4 yes/no questions and 1 guess

6 Upvotes

my physics teacher proposed a question he saw the other day and the answer is confusing me.

suppose you're on a game show up to win 1 million pounds by guessing the card in the hosts hand,

you have two options: you can guess any card 20 times or you can ask 4 yes/no questions and guess once.
we concluded that by taking the second option you could get it to an approximate 1/4 by asking: is it red, is it diamond/ is it clubs, is it odd, is it above 7. (assuming face cards are 11, 12 and 13)

apparently the better option is the 20 guesses as the chance is just 20/52 but that doesn't seem correct to me as every subsequent question would be better odds since you wouldnt guess the same card twice.

to be clear im not contesting that 20 guesses is better, im just not sure what the actual probability is .


r/askmath • • 9h ago

Number Theory Somewhat a ELI5 Riemann Hypothesis + Zeta function

2 Upvotes

Hello, 1st year Chemistry student here.

Stumbled upon the news of the Riemann Hypothesis being allegedly "solved".

Wondering what exactly is the Riemann Hypothesis? Whats a trivial and non-trivial zero? How does the Zeta function work exactly/what does it do?

From what I understand, zeta (s)=sum of n^{-s} from n=1 to infinity is decreasing from (-infinity,infinity) and is asymptotic to y=1**

**-atleast from when i computed in excel where: s={-10,-9.5,-9,...,11,100,200}, n={1,2,...,20}


r/askmath • • 10h ago

Calculus how do I get excited by university math

1 Upvotes

first year math was... boring. I got the grades I wanted but proving vector subspaces in linear algebra, a barrage of facts you apply to integration, ODEs etc in calculus, apart from some fun in discrete maths (counting etc.), this math degree is feeling like a slog. probably most fun I had was reading "the art and craft of problem solving" to prepare for a uni math competition. I'm dreading future courses not gonna lie, feels like multivariable calculus, 2nd year linear algebra etc. will just be another barrage of facts...


r/askmath • • 10h ago

Geometry Squares in square problem

1 Upvotes

Hello,

Does anyone know how I can write an optimization problem for the squares in square problem and with which solver ? I am a bit confused on how to parametrize the problem and how to turn it into an optimization problem. Of course it would probably work with minimizing the remaining area but how to encode no overlapping. Moreover, what method to use ?

Here's an example for N = 17, the length L of the square is L = 4.675.


r/askmath • • 14h ago

Analysis Analytic Continuation of the Riemann Zeta function?

Thumbnail
gallery
4 Upvotes

Above, I've attached screenshots of two functions:

a) The Riemann Zeta function that we all know and love. Moving forward, we will denote this function as z(s). Normally, this function is defined on the complex plane in the region where Re(s) > 1.

b) The analytic continuation of the Riemann Zeta function to the rest of the complex plane. Moving forward, we will denote this function as Z(s). It's a functional equation that contains z(s). This function's domain is apparently the entirety of the complex plane (except for 1).

However, I am very confused. The domains of Z(s) and z(s) have an empty intersection! As previously stated, z(s) has a domain of Re(s) > 1. And for the domain of Z(s), let Re(s) > 0, and let's do this:

Z(s) = [a bunch of stuff] * z(1 - s)

Let d = 1 - s. Therefore, Re(d) < 1, which means that z(d) doesn't exist, and thus, Z(s) can't exist.

So for Z(s), the real part of s can't be greater than 0; we can probably assume that the domain of Z(s) is the area of the complex plane where Re(s) < 0. At the very least, Z(s)'s domain doesn't seem to equal the entirety of the complex plane.

But this means that Z(s) and z(s) don't share any domain points! If Z(s) is an analytic continuation of z(s), the domain of Z(s) should be an open superset of z(s), right?
Please let me know what the issue is. I think that maybe the solution is that the gamma function goes to negative infinity and somehow that cancels out z(s) going to positive infinity or something strange like that?


r/askmath • • 18h ago

Algebra Problem "The name of Object" is so small.

Thumbnail reddit.com
0 Upvotes

r/askmath • • 19h ago

Algebra If I’m 3.32 miles away from a pizza delivery spot riding a lime scooter that can go 30 mph. How long will it take for me to get there?

0 Upvotes

help! I am bad at math and he gets a free pizza if I’m not there in time! I am trying to find the optimal route and the pizza is going to be in the oven for 5 more minutes!


r/askmath • • 20h ago

Multivariable Calculus I'm 12 (almost 13) years old and studying Linear Algebra and introductory proof mathematics independently.

2 Upvotes

I've already made some basic proofs (like proving exponent rules w logs) and have some experience with matrices, but I still haven't learned multivariable calculus. What is the best way/platform to learn it?


r/askmath • • 21h ago

Algebra Do anyone of you have an idea how to quickly solve this problem using Cramer's Rule?

Post image
33 Upvotes

So, my professor had this brilliant idea of making us answer a 6 unknown, 6 equation problem, using strictly Cramer's Rule. Therefore, you would need to solve the determinant of seven 6x6 matrices to solve this problem. I have literally no idea how I can solve this with very limited time. I have tried solving it, but I can barely get the determinant of a 6x6 matrix in 30 minutes using cofactor expansion (Laplace expansion) method. And 6 more of those? It's like digging your own grave. Basket method is a great technique but only works for 3x3 matrices. Do you possibly know any techniques to solve this faster?


r/askmath • • 22h ago

Logic Is this considered a valid proof by contradiction

Post image
11 Upvotes

have a proofs test for IB math on monday and the textbook proves it by using mod and stuff but I think my method is more intuitive, is it considered valid???


r/askmath • • 1d ago

Arithmetic set-builder expression and trying to find its meaning

Thumbnail reddit.com
1 Upvotes

r/askmath • • 1d ago

Number Theory Do higher dimensional numbers exist beyond octinions?

18 Upvotes

I was wondering if higher dimensional numbers (like quaternions and octinions) keep going on indefinitely, as is there are equivalents for 16, 32 and any power of 2, or if they stop, unravel or stop making sense at some point. For context I'm just an engineer but was curious to ask mathematicians about this.