Non-linear recursions are trickier (with a new technique!)

  Рет қаралды 18,494

Michael Penn

Michael Penn

Күн бұрын

Пікірлер: 53
@28aminoacids
@28aminoacids 2 жыл бұрын
Thanks for showing the exponential generating function method. However, I did it like this : *a(n+1) = (n+1).a(n) - n* => *a(n+1) - 1 = (n + 1)(a(n) - 1)* If we let *b(n) = a(n) - 1* , then *b(n+1) = (n + 1).b(n)* => *b(n) = n!.b(0)* Since *b(0) = 2* , we can deduce, *a(n) = 1 + 2n!*
@thierrychenevier3508
@thierrychenevier3508 2 жыл бұрын
Much quicker ! and simpler too...
@ΓιώργοςΚοτσάλης-σ1η
@ΓιώργοςΚοτσάλης-σ1η 2 жыл бұрын
Lol
@burpleson
@burpleson 2 жыл бұрын
You can rewrite the original recursion and avoid the generating function. a[n+1] = (n+1) a[n] - n = (n+1) a[n] - (n+1) + 1 = (n+1) (a[n] -1) + 1. Defining b[n] = a[n] - 1, we have the new recursion b[n+1] = (n+1) b[n], which has the obvious solution b[n] = b[0] n!, so a[n] = (a[0] - 1) n! + 1.
@holyshit922
@holyshit922 2 жыл бұрын
I have got following Cauchy problem for linear first order differential equation when i was calculating this generating function A'(x)=xA'(x)+A(x)-xe^{x} A(0) = 3 (1-x)A'(x) - A(x)=-xe^{x} A(0) = 3 This is linear first order differential equation and can be solved using integrating factor or variation of parameter Because it is Cauchy problem we have to calculate constant at the end
@hxc7273
@hxc7273 2 жыл бұрын
The fundamental theorem of arithmetic vaporized his hoodie.
@JM-us3fr
@JM-us3fr 2 жыл бұрын
Such a brilliant trick at the end!
@goodplacetostop2973
@goodplacetostop2973 2 жыл бұрын
17:05
@BerfOfficial
@BerfOfficial 2 жыл бұрын
The statement of the last claim is not sufficient. The claim should be for all m which are not a power of two. But the proof remains the same since if m is no power of two, its prime factorisation has at least one odd prime.
@chaoticoli09
@chaoticoli09 2 жыл бұрын
power of two* its* (clearly the upvotes indicate these corrections were not necessary to understand what you meant).
@juandesalgado
@juandesalgado 2 жыл бұрын
@@chaoticoli09 The fellow just likes rhyming in addition to mathematics
@franksaved3893
@franksaved3893 2 жыл бұрын
The claim says m>=3 and odd.
@juandesalgado
@juandesalgado 2 жыл бұрын
​@@franksaved3893 The claim eliminates the odds, but the remaining numbers are the evens, not the powers of two. But, as Berf says, the same argument can be used to eliminate any number containing an odd prime. It was probably just a slip, and "number containing an odd prime" was actually intended, instead of "odd".
@omriflo
@omriflo 2 жыл бұрын
The claim is also not worded correctly. It says gcd(m, a_n) != 1. But which n? Certainly not all n. His proof essentially* proves the following claim: "If m is a natural number which is not a power of 2, then *there exists* some n s.t gcd(m, a_n) != 1". *the only tweak would be that any m which is not a power of 2, has some prime factor p which is not 2 (he also implicitly uses the fact that p isn't 2 when writing (p-3)!).
@mathboy8188
@mathboy8188 2 жыл бұрын
In the previous comments, Anindya Biswas and burpleson (and maybe others) gave the simplest algebraic derivation of the solution, but there's another common algebraic trick that also works here and is worth knowing. The trick is to consider how a recursion responds to factorials. Those 1 a(n+1) and (n+1) a(n) terms are screaming to apply the factorial trick. How that works here is noting that if you divide both sides by (n+1)!, those terms become a(n+1)/(n+1)! and a(n)/n!. Define b(n), for n>= 0, by b(n) = a(n)/n! (so a(n) = n! b(n)). Then a(n+1) = (n+1) a(n) - n, so (n+1)! b(n+1) = (n+1) n! b(n) - n, so (n+1)! b(n+1) = (n+1)! b(n) - n. so b(n+1) = b(n) - n / (n+1)!. Since that's like b(n+1) = b(n) - u(n), where u(n) = n/(n+1)!, have b(n) = b(0) - SUM{ k=0 to k=(n-1) of u(k) }. [Obvious from b(1) = b(0) - u(0), b(2) = b(1) - u(1) = b(0) - u(0) - u(1), b(3) = b(2) - u(2) = b(0) - u(0) - u(1) - u(2), etc.] Thus, for n>=1, have: b(n) = b(0) - SUM{ k=0 to k=(n-1) of k/(k+1)! } = b(0) - SUM{ k=0 to k=(n-1) of [ (k+1) - 1 ] /(k+1)! } = b(0) - SUM{ k=0 to k=(n-1) of [ (k+1)/(k+1)! - 1/(k+1)! ] } = b(0) - SUM{ k=0 to k=(n-1) of [ 1/k! - 1/(k+1)! ] } = b(0) - [ ( 1/0! - 1/1! ) + ( 1/1! - 1/2! ) + ( 1/2! - 1/3! ) + ... + ( 1/(n-1)! - 1/n! ) ] = b(0) - [ 1 - 1/n! ] = (b(0)-1) + 1/n!. Then use b(0) = a(0)/0! = 3/1 = 3 to get the final explicit form of a(n): a(n) = n! b(n) = n! [ (b(0)-1) + 1/n! ] = (b(0)-1) n! + 1 = (3- 1) n! + 1 = 2 n! + 1. I think for general linear recursions, the generating function technique is best, because you can often get it into a differential equation (or sometimes, like here, even a simple equation), and the techniques for handling differential equations are usually easier to see and compute than what would be the corresponding algebraic "trick" that would give the same result. But recursions also have many effective algebraic tricks worth knowing.
@adandap
@adandap 2 жыл бұрын
Yes, that's an example of a 'summing factor'. I mentioned that too, but you were prepared to do much more typing than I was! :D
@void7366
@void7366 2 жыл бұрын
Cool video, when i saw the title (non-linear recursion) i thought it would help with my homework, it goes like this: Un is a sequence defined by it's first term U(0)>1 and U(n+1)=(4Un+2)/(Un+5) Find Un in terms of n.
@jakobunfried2669
@jakobunfried2669 2 жыл бұрын
my approach would be a lot of work and after becoming pretty sure it would worked, i didnt finish, so i dont have a closed form. try this: trying a few iterations it becomes clear that you can always write Un = (An U0 + Bn) / (Cn U0 + Dn). so make that ansatz. plugging in the recursion, you get some coupled recursions for the (An Cn) and (Bn Dn). write them as a matrix equation, basically (An Cn)^T = M (A_{n-1} C_{n-1}). so you can find An and Cn by applying M^{n-1} to (A1 C1) = (4 1) You can do that by diagonalising M analogously for Bn Dn. of course that isnt a proof, since the ansatz is just guessed, but you can easily prove that it is correct, once you have the closed form
@void7366
@void7366 2 жыл бұрын
@@jakobunfried2669 THANX ALOT MAN !!!
@glenm99
@glenm99 2 жыл бұрын
14:35 Jacket comes off, math is getting serious. Either that or it's so straightforward that no more sleeve erasing will need to happen. :)
@mathmathician8250
@mathmathician8250 2 жыл бұрын
Like this video very much. Got to learn tons of new techniques
@adandap
@adandap 2 жыл бұрын
A summing factor also works well for this problem. Multiply the recursion by 1/product[(n+1) n (n-1) ... 1] = 1/(n+1)! and then sum both sides, giving a telescoping series.
@nevokrien95
@nevokrien95 2 жыл бұрын
U can just play with trying to index shift and add one and stuff like that and you will find it. I could see the value in the method but its fqster to do the otger way
@xbronn
@xbronn 2 жыл бұрын
left side of the board reads: Find all meN such that god(man) = 1 this couldn’t have been on purpose, could it
@MathFromAlphaToOmega
@MathFromAlphaToOmega 2 жыл бұрын
You could also try solving this with ordinary generating functions, but then you'll get a differential equation whose solution is a divergent integral. Still, with some clever calculations, it should be possible to determine a_n that way.
@pavlopanasiuk7297
@pavlopanasiuk7297 Ай бұрын
I guess you could make work of it very quickly. It is linear inhomogeneous recurrence. Much like with ODEs, you can guess inhomogeneous solution to be 1. The homogeneous one is also guessable (any you can find with arbitrary coefficient). You get a(n) = C * n! + 1
@cielblue235
@cielblue235 2 жыл бұрын
Dividing the both sides of the recurrence by (n+1) ! gives a(n+1) / (n+1)! = a(n) / n ! - n / (n+1) !, and we can rewire that as : [ a(n+1) -1 ] / (n+1)! =[ a(n) -1 ] / n ! = ・・・ = a(0)/0! - 1/0! = 2, yieding a (n) = 2 n ! + 1 (n=0, 1, ...).
@ayoubabid714
@ayoubabid714 2 жыл бұрын
I'm so happy because , i have a time to do these greats problems
@mrphlip
@mrphlip 2 жыл бұрын
Before watching the video, since he challenged us to give it a go... a[n+1] = (n+1)a[n] - n = (n+1)(a[n] - 1) + 1 Substitute b[n] = a[n] - 1 b[n+1] = (n+1)b[n] = n!b[0] = 2n! So a[n] = 2n! + 1 Clearly, all of a[n] is odd, so if m is a power of 2 then it will be coprime to all of them. On the other hand, say m is not a power of 2, then it has some odd prime factor, call it p. It is a standard result that: (p-1)! = -1 (mod p) (p-3)!(p-2)(p-1) = -1 (mod p) (p-3)!(-2)(-1) = -1 (mod p) 2(p-3)! = -1 (mod p) 2(p-3)! + 1 = 0 (mod p) a[p-3] = 0 (mod p) so a[p-3] is not coprime with m. So only powers of 2 satisfy the condition.
@stewartcopeland4950
@stewartcopeland4950 2 жыл бұрын
@ 14:35 there is no fan on this human pc, you have to drop the jacket
@yasinmohammadi8
@yasinmohammadi8 2 жыл бұрын
That was really nice video 💯💯💯
@xwtek3505
@xwtek3505 2 жыл бұрын
I solved it like this. I solve a_n for any a_0 by looking at the expanded (nonsimplified) formula for a_n. With that, I found that a_n = n! * a_0 + sum {k=1 to n} (n! (k-1)/k!) I also note that for a_0=1, a_n is always 1, so we get 1=n! + sum {k=1 to n} (n! (k-1)/k!) 1-n! = sum {k=1 to n} (n! (k-1)/k!) And substitute it to the original equation, so I get a_n = n! * a_0 + 1-n! a_n = n! * (a_0-1) +1 For a_0=3, we get a_n = 2*n! + 1
@tomholroyd7519
@tomholroyd7519 2 жыл бұрын
Seems like the audio is slightly desynchronized from the video? Maybe that's just my connection
@juandesalgado
@juandesalgado 2 жыл бұрын
Great content. Thanks!
@TedHopp
@TedHopp 2 жыл бұрын
Nice solution. For the last part, you probably don't mean to require that m be odd. You just need m to have an odd divisor (and therefore an odd prime divisor). Otherwise you haven't ruled out values like m=6. Also, your claim should be that *there exists* an n such that gcd(m, a_n) > 1. I don't think the claim holds for all n (and you certainly didn't prove that).
@Zooofa0610
@Zooofa0610 2 жыл бұрын
10:54 🤔 x will change Because 2/(1-x)=sum(2 x^n) for Abs[x]
@Aditya_196
@Aditya_196 6 ай бұрын
13:41 😂😂 i really felt it so hard even though it's always obvious but to prove it is a pain in ass
@Stelios2711
@Stelios2711 2 жыл бұрын
The problem was in general easy. The only difficult and non-standard olympiad part was the trick at the end where you isolated the factors p-1 and p-2 to show that p-3 does the job. Note: We could have found the formula of a_n by writing x_(n+1) = (n+1)x_n (*), where x_n = a_n - 1. From (*) we easily see that x_n = n!x_0 and that's all. :)
@tahirimathscienceonlinetea4273
@tahirimathscienceonlinetea4273 2 жыл бұрын
I love this problem ,very good technic to use the Wilson theorem in the last part that's tricker thing thanks Micheal for a good solution 👍👍👍
@Mathskylive
@Mathskylive 2 жыл бұрын
Bài toán về dãy số. Phải tìm hiểu quy luật của dãy số.
@changjeffreysinto3872
@changjeffreysinto3872 2 жыл бұрын
Um the claim should be not a power of 2, since if it is some number like 6, it is even but still has a odd prime factor. The grudge here is since the question asks for all m, and if you're seeing this, how do you know there aren't any other numbers that gcd(m,an)=1? So we have to partition the whole set of integers into two parts, prove the non tower of two part, show the tower of two part, and finish. Enjoyed the last trick btw
@holyshit922
@holyshit922 7 ай бұрын
In fact this is linear recusion but with non-constant coefficients
@benezraraphael291
@benezraraphael291 2 жыл бұрын
Shouldn't you prove existence of A(x) beforehand ? It is not obvious. If a(n) = n!*n^n the séries only exists at x=0. Obviously you can prove that the a(n) sequence found with your method verify the initial recurrent relation. But still, to be perfectly clean you should do it ;) best.
@ezequielangelucci1263
@ezequielangelucci1263 2 жыл бұрын
no because A(x) isnt a well defined function, we dont care about how it maps elements from its domain (sometimes inexistent) to its codomain. We only care about the coeficient of the x^n
@schrodingerbracat2927
@schrodingerbracat2927 2 жыл бұрын
nice trick. . then i realised that a_n = 2n! + 1 formula can be obtained by writing out the first few terms of a_n and observing a pattern.
@manucitomx
@manucitomx 2 жыл бұрын
What a fantastic Friday problem. Thank you, professor!
@jamesfortune243
@jamesfortune243 2 жыл бұрын
Awareness++
@bravobessa3684
@bravobessa3684 2 жыл бұрын
Not sufficient.... Even number are not all power of 2 The statement should be m greater than 3 with an odd prime... (not a power of 2) The proof remains the same tough
@pasqueocwe531
@pasqueocwe531 2 жыл бұрын
Good evening matematics
@franksaved3893
@franksaved3893 2 жыл бұрын
You have seen a lot of Michael videos when you solve a problem in the exact same way of him.
@yoav613
@yoav613 2 жыл бұрын
Nice one
@eduardvalentin830
@eduardvalentin830 2 жыл бұрын
14:06 I think you made a mistake. It should be m>3 and *not a power of two*. Pin this so other people can see it!
@ayoubabid714
@ayoubabid714 2 жыл бұрын
Yeah , goog problem , i will to solve
A great integral calculus review in one problem!!
19:26
Michael Penn
Рет қаралды 55 М.
Exponential... fibonacci?
25:09
Michael Penn
Рет қаралды 21 М.
黑的奸计得逞 #古风
00:24
Black and white double fury
Рет қаралды 23 МЛН
SISTER EXPOSED MY MAGIC @Whoispelagheya
00:45
MasomkaMagic
Рет қаралды 12 МЛН
НАШЛА ДЕНЬГИ🙀@VERONIKAborsch
00:38
МишАня
Рет қаралды 2,8 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 262 #shorts
00:20
The Langlands Program - Numberphile
1:03:27
Numberphile
Рет қаралды 440 М.
How to deal with any recursive sequence.
17:09
Michael Penn
Рет қаралды 18 М.
find the integer solutions of this cubic
15:29
Michael Penn
Рет қаралды 25 М.
The Oldest Unsolved Problem in Math
31:33
Veritasium
Рет қаралды 11 МЛН
This problem writer is clever.
17:42
Michael Penn
Рет қаралды 27 М.
Kepler’s Impossible Equation
22:42
Welch Labs
Рет қаралды 123 М.
A Soviet number puzzle.
12:31
Michael Penn
Рет қаралды 18 М.
There is a nice trick to calculate this limit.
17:01
Michael Penn
Рет қаралды 64 М.
just an average recursion...OR IS IT?
18:24
Michael Penn
Рет қаралды 55 М.
Every calculus teacher I know skips this!!
21:09
Michael Penn
Рет қаралды 66 М.
黑的奸计得逞 #古风
00:24
Black and white double fury
Рет қаралды 23 МЛН