Find the smallest prime number N such that the following is true:
The largest prime factor of N−1 is A;
The largest prime factor of A−1 is B;
The largest prime factor of B−1 is 7.
The largest prime factor of N−1 is A;
The largest prime factor of A−1 is B;
The largest prime factor of B−1 is 7.