%I #18 Nov 22 2019 06:14:27
%S 2,2,2,6,2,14,12,50,296,74,642,980,1760,896,2774,118112,44060,5850
%N Difference between F(n) = 2^(2^n)+1 and nextprime(F(n)) where F(n) is the n-th Fermat Number.
%C In the Name, nextprime means A151800, not A007918. - _Jeppe Stig Nielsen_, Nov 18 2019
%C a(n) = A129786(n)-1 except in the rare case that F(n) is a prime. - _Jeppe Stig Nielsen_, Nov 18 2019
%F a(n) = A013632(A000215(n)). - _Michel Marcus_, Nov 18 2019
%e F(5) = 4294967297. Nextprime(F(5)) = 4294967311.
%e 4294967311 - 4294967297 = 14 the 6th entry in the table.
%o (PARI) for(n=0,+oo,print1(nextprime(2^(2^n)+2)-(2^(2^n)+1),", ")) \\ _Jeppe Stig Nielsen_, Nov 18 2019
%Y Cf. A000215, A013632, A151800, A129786.
%K nonn,more
%O 0,1
%A _Cino Hilliard_, Aug 27 2004
%E More terms with the help of A129786 from _Jeppe Stig Nielsen_, Nov 18 2019
|