Solution: Day 5, problem 3


The solutions of the fifth day problems problems are somewhat longer and we only give highlights.

The sequence (vn)( v_{n} ) starts 2, 3, 5, 10, 28, 154, 3520, 1551880, 267593772160, 7160642690122633501504, ...
It is required to show that the first non - integral vnv_{n} is v43v_{43} = 5.4093 x 10178485291567 approximately. Again, the only problem is to show that the first index n0n_{0} with vn¬0v_{n¬0} not in Z is n0=43n_{0} = 43, since the size of vn¬0v_{n¬0} then follows from the easily proved formula vn (n2+2n1+4n121n2+137n3...)×C2nv_{n} ~ (n^{2} + 2n - 1 + 4n^{-1} - 21n^{-2} + 137n^{-3} - ...) \times C^{2^n} with C = 1.04783144757641122955990946274313755459... .

We first replace vnv_{n} by sn=2+v12+...+vn12=nvns_{n} = 2 + v_{1}^{2} + ... + v_{n-1}^{2} = n v_{n}. Then the recursion becomes sn+1=sn=sn2/n2s_{n+1} = s_{n} = s_{n}^{2}/n^{2} with initial condition s1=2s_{1} = 2. Let us look at one prime pp at a time. The first sns_{n} which could fail to be pp-integral is sp+1s_{p+1}, which will happen if and only if sps_{p} is not divisible by pp, so we can test this by looking at the sequence (s1,s2,...,sp)(s_{1}, s_{2}, ... ,s_{p} ) modulo pp. This is an easy calculation since the numbers sj(modp)s_{j} (mod p) do not grow, and we find with a couple of minutes on a computer that sp=0s_{p} = 0 modulo pp for each prime p<43p < 43 but not for 43. (Note that this calculation cannot be done directly since no computer can compute or store the sns_{n}'s for nn bigger than about 22.) This proves that v43v_{43} is not integral (it has a denominator divisible by 43), and that vpv_{p} is at least p-integral for p less than 43.

To check that vnv_{n} is actually integral for n42n ≤ 42 we must only compute the sequence sns_{n} modulo quite modest powers of primes less than 43, and this is easily done on the computer. The real question is why the congruence sp=0s_{p} = 0 modulo pp holds for all primes less than 43, since naively one would think that its probability of holding for even one prime pp is about 1/p1/p, which is quite small. But in fact its probability of holding for a given pp is quite large, since in the recursion for the sns_{n}, if any sns_{n} with n<pn < p happens to take on the value n2modp-n^{2} mod p then all of the following sns_{n} are 0modp0 mod p, and the chance of this happening can be expected to be about 63%. Also, this argument holds for any initial value s1s_{1}, and the value s1=2s_{1} = 2 has been chosen to make the first few primes behave.