login
The length of the longest sequence of consecutive integers, each equal to 1 or -1 modulo at least one of the first n primes.
1

%I #17 Mar 23 2024 17:31:39

%S 1,5,11,29,41,65,107,149,203,257,347,527,545,617,707,869

%N The length of the longest sequence of consecutive integers, each equal to 1 or -1 modulo at least one of the first n primes.

%C For n > 1, a(n) == 5 (mod 6).

%H StackExchange, <a href="http://mathematica.stackexchange.com/questions/114758/oeis-a144311-generating-function">OEIS A144311 Generating function</a>, May 10 2016.

%e For the first, second and fourth terms the sequences are {1}, {1,2,3,4,5}, and {73,74,...,101}. [corrected by _Felix A. Pahl_, May 10 2016]

%Y Cf. A058989.

%K nonn,more,hard

%O 1,2

%A Andrew Carter (acarter09(AT)newarka.edu), Sep 17 2008

%E a(8)-a(16) from _Max Alekseyev_, Nov 18 2009