Ask your own question, for FREE!
Mathematics 17 Online
OpenStudy (kainui):

Pick a problem: https://projecteuler.net/problems and let's solve it. Add me in Project Euler, here's my friend key: 515695_59af051bf075df0d0763d75d3df7cf69

OpenStudy (fibonaccichick666):

I'm just curious, what is this?

OpenStudy (fibonaccichick666):

and I pick this one :) https://projecteuler.net/problem=492

OpenStudy (fibonaccichick666):

Define the sequence a1, a2, a3, ... as: a1 = 1 an+1 = 6an2 + 10an + 3 for n ≥ 1. Examples: a3 = 2359 a6 = 269221280981320216750489044576319 a6 mod 1 000 000 007 = 203064689 a100 mod 1 000 000 007 = 456482974 Define B(x,y,n) as ∑ (an mod p) for every prime p such that x ≤ p ≤ x+y. Examples: B(109, 103, 103) = 23674718882 B(109, 103, 1015) = 20731563854 Find B(109, 107, 1015).

OpenStudy (fibonaccichick666):

so the biggest possible prime is 100999993

OpenStudy (usukidoll):

number theory?

OpenStudy (fibonaccichick666):

smallest is 109

OpenStudy (kainui):

Yeah, it seems straight forward more or less, I wonder what the trick is since there are a lot of primes going on there haha.

OpenStudy (usukidoll):

I know that any prime that can't be expressed as a sum of squares is a Gaussian Prime... and we also need 3 mod 4 for this to happen

OpenStudy (fibonaccichick666):

hmmm

OpenStudy (kainui):

I think we can turn this recursive formula into a formula for the nth term. Fibonacci chick should know how to do this, because you do something very similar with a quadratic and the golden ratio to find the nth fibonacci number.

OpenStudy (usukidoll):

O_O! @Alchemista HI! Long time no see

OpenStudy (fibonaccichick666):

lol you overestimate my abilities based on my name :) My number theory class was absolutely atrocious so I'm a novice here

OpenStudy (anonymous):

Hello

OpenStudy (usukidoll):

@Alchemista do you know how to take the Inverse Fourier Transform? I'm just stuck at that last step for the heat equation x.x!

OpenStudy (fibonaccichick666):

Personally I would use a database to get the primes in between then put those in a database and run the slogorithm

OpenStudy (fibonaccichick666):

then once the number has been found, we'd need the chinese remainder thm

OpenStudy (usukidoll):

Chinese Remainder Theorem is fun... but I think there are two versions of it... at least that's what I remember in the book.

OpenStudy (fibonaccichick666):

I know there is a group theory version and a number theory option

OpenStudy (usukidoll):

I've done it before... just need to refresh my memory on it XD. I think I need to find my professor's notes again.

OpenStudy (fibonaccichick666):

I mean if we say there are n primes between the two, we want something like this \[m_1=xmod p_1\]\[m_2=xmod p_2\]. . . \[m_n=x mod p_n\]

OpenStudy (fibonaccichick666):

then we can say \[\frac{m_1}{x}=1modp_1\]\[\frac{m_2}{x}=1modp_2\]. . . \[\frac{m_n}{x}=1modp_n\]

OpenStudy (fibonaccichick666):

right?

OpenStudy (fibonaccichick666):

oh wait no...

OpenStudy (fibonaccichick666):

set all \(m_i=m\)

OpenStudy (fibonaccichick666):

and make it \(x_i\) that are not necessarily distinct

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!