A144311 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, 5, 11, 29, 41, 65, 107, 149, 203, 257, 347, 527, 545, 617, 707, 869, 965, 1079, 1283, 1397, 1529, 1709
Offset: 1
Examples
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]
Links
- StackExchange, OEIS A144311 Generating function, May 10 2016.
- Jinyuan Wang, C++ program.
Extensions
a(8)-a(16) from Max Alekseyev, Nov 18 2009
a(17)-a(22) from Jinyuan Wang, Nov 26 2024
Comments