Solution: Day 5, problem 3
The solutions of the fifth day problems problems are somewhat longer and we only give highlights.
The sequence starts 2, 3, 5, 10, 28, 154, 3520, 1551880, 267593772160, 7160642690122633501504, ...
It is required to show that the first non - integral is = 5.4093 x 10178485291567 approximately. Again, the only problem is to show that the first index with not in Z is , since the size of then follows from the easily proved formula with C = 1.04783144757641122955990946274313755459... .
We first replace by . Then the recursion becomes with initial condition . Let us look at one prime at a time. The first which could fail to be -integral is , which will happen if and only if is not divisible by , so we can test this by looking at the sequence modulo . This is an easy calculation since the numbers do not grow, and we find with a couple of minutes on a computer that modulo for each prime but not for 43. (Note that this calculation cannot be done directly since no computer can compute or store the 's for bigger than about 22.) This proves that is not integral (it has a denominator divisible by 43), and that is at least p-integral for p less than 43.
To check that is actually integral for we must only compute the sequence modulo quite modest powers of primes less than 43, and this is easily done on the computer. The real question is why the congruence modulo holds for all primes less than 43, since naively one would think that its probability of holding for even one prime is about , which is quite small. But in fact its probability of holding for a given is quite large, since in the recursion for the , if any with happens to take on the value then all of the following are , and the chance of this happening can be expected to be about 63%. Also, this argument holds for any initial value , and the value has been chosen to make the first few primes behave.