A276435 Smallest integer z > 1 that satisfies all the integer congruences z mod i = b(i) mod i, where b(i) is the i-th composite between prime(k) and prime(k+1), 0 < i < prime(k+1) - prime(k) - 1, and k > 1 is the smallest integer not used by previous terms of the sequence.
23, 31, 47, 53, 13, 23, 89, 113, 11, 139, 31, 37, 47, 53, 181, 199, 211, 53, 241, 11, 17, 23, 31, 283, 293, 317, 31, 337, 53, 359, 7, 13, 23, 389, 401, 409, 421, 13, 23, 29, 467, 59, 71, 23, 509, 523, 547, 17, 23, 31, 577, 47, 53, 7, 619, 631, 47, 53, 661, 17, 263, 691, 281, 709, 299, 7, 13, 323
Offset: 1
Keywords
Examples
The first term is obtained with k = 9 for which prime(9)=23, prime(10)=29, and its corresponding i=5 intermediate composites are 24, 25, 26, 27 and 28, then a(1) = z = 23 because this is the smallest integer that satisfies all five integer congruences: z mod 1 = 24 mod 1, z mod 2 = 25 mod 2, z mod 3 = 26 mod 3, z mod 4 = 27 mod 4, z mod 5 = 28 mod 5. With k = 10 the corresponding primes are prime(10)=29 and prime(11)=31, and the only (i=1) corresponding intermediate composite is 30, then the smallest z that satisfies z mod 1 = 30 mod 1 is z=0 which is not greater than 1 and then, k=10 cannot be used to generate a term of the sequence. The second term is obtained with k = 11 for which prime(11)=31, prime(12)=37, and the corresponding i=5 intermediate composites are 32, 33, 34, 35 and 36, then a(2) = z = 31 because this is the smallest integer that satisfies: z mod 1 = 32 mod 1, z mod 2 = 33 mod 2, z mod 3 = 34 mod 3, z mod 4 = 35 mod 4, z mod 5 = 36 mod 5. a(7) = 89 is obtained with k = 24 for which prime(24)=89, prime(25)=97, and its corresponding i=7 intermediate composites are 90,91,...,95,96, then a(7) = z = 89 because this is the smallest integer that satisfies: z mod 1 = 90 mod 1, z mod 2 = 91 mod 2, ... z mod 6 = 95 mod 6, z mod 7 = 96 mod 7.
Links
- Andres Cicuttin, Four plots of the first elements obtained exploring respectively the first 10^2, 10^3, 10^4 and 10^5 primes
- Fred B. Holt with Helgi Rudd, Combinatorics of the Gaps Between Primes, arXiv:1510.00743 [math.NT], 2015.
Programs
-
Mathematica
nmax = 132 (* last explorative prime index *); Select[Table[ChineseRemainder[Range[Prime[k]+1,Prime[k+1]-1],Table[j,{j,1,Prime[k+1]-Prime[k]-1}]],{k,2,nmax}],#>1&]
-
PARI
lista(nn) = {for (n=1, nn, p = prime(n); nbc = nextprime(p+1) - p - 1; if (nbc, v = vector(nbc, k, p+k); vm = vector(nbc, k, Mod(v[k], k)); ij = lift(chinese(vm)); if (ij>1, print1(ij, ", "));););} \\ Michel Marcus, Sep 11 2016
Comments