A319148 Irregular triangle T(n,m) where row n lists differences m = j*p - r - 1, with iterator 1 <= j <= A002110(n), p = prime(n+1), and r is the smallest number that exceeds j*p that is coprime to A002110(n+1).
0, 1, 0, 1, 0, 1, 2, 3, 0, 3, 2, 1, 0, 1, 0, 3, 2, 3, 0, 1, 4, 5, 2, 1, 0, 1, 0, 3, 2, 1, 2, 1, 0, 3, 4, 1, 0, 5, 0, 1, 0, 3, 2, 3, 0, 1, 0, 1, 2, 5, 4, 5, 2, 1, 2, 3, 0, 1, 0, 1, 4, 3, 4, 1, 2, 1, 2, 3, 0, 5, 0, 3, 2, 3, 0, 1, 0, 1, 2, 5, 0, 5, 2, 3, 2, 3, 0, 1, 0, 1, 4, 3, 4, 1, 0, 1
Offset: 1
Examples
Triangle begins: 0; 1,0; 1,0,1,2,3,0; 3,2,1,0,1,0,3,2,3,0,1,4,5,2,1,0,1,0,3,2,1,2,1,0,3,4,1,0,5,0; ... For n = 2, we have s = {2,3,5}, with p = prime(n+1) = 5, P = A002110(2) = 6, and Q = A002110(3) = 30. Then R = row n of A286941 = {1, 7, 11, 13, 17, 19, 23, 29} (we add 31 to this list since we are concerned with the residue that is larger than the largest k and since 31 is the ensuing number coprime to Q). The series of multiples k = j*p are the multiples 5j with 1 <= j <= P, thus {5, 10, 15, 20, 25, 30}. In R, the smallest residues that exceed the multiples k in the immediately aforementioned list are {7, 11, 17, 23, 29, 31}. The differences are {7 - 5, 11 - 10, 17 - 15, 23 - 20, 29 - 25, 31 - 30} or {2, 1, 2, 3, 4, 1}; subtracting one from each we have row 2 = {1, 0, 1, 2, 3, 0}. For example, the third value on row n=20000 is 15, so all values in the range (3 * prime(20000) + i) to (3 * prime(20000) + i) for 1 <= i <= 15 have at least one prime factor <= prime(n).
Links
- Mario Ziller and John F. Morack, Algorithmic concepts for the computation of Jacobsthal's function, arXiv:1611.03310 [math.NT], 2016.
- Mario Ziller, New computational results on a conjecture of Jacobsthal, arXiv:1903.11973 [math.NT], 2019.
Programs
-
Mathematica
rowToCreate = 3; (* create row n *) redundantDistanceToCheck = 1; (* set to 2 or higher to see n repeating patterns of length primorial[rowToCreate] *) Primorial[n_] := Times @@ Prime[Range[n]] rowValue = 0; primeToUse = Prime[rowToCreate]; distanceToCheck1 = redundantDistanceToCheck*Primorial[rowToCreate]; (* distanceToCheck1=rowToCreate*10000; *)(* uncomment this second option to create the first few values in very large rows up to rowToCreate=7000000000000 *) For[i = primeToUse, i < distanceToCheck1 + 1, i = i + primeToUse, For[x = i + 1, x < distanceToCheck1 + 2, x++, If[FactorInteger[x][[1, 1]] < primeToUse, rowValue++; , x = distanceToCheck1 + 2; Print[rowValue]; rowValue = 0; ]]] (* Jamie Morken, Sep 11 2018 *) (* Program to check the number of composites referenced to row values: *) Row = 100; ColumnOnTheRow = 12; Print["composites>", ColumnOnTheRow*Prime[Row], "=", (NextPrime[ColumnOnTheRow*Prime[Row]]) - (ColumnOnTheRow*Prime[Row]) - 1]; (* Second program: *) Table[Block[{s = Prime@ Range[n + 1], p, P, Q}, p = Last@ s; P = Times @@ Most@ s; Q = Times @@ s; Array[Block[{k = 1}, While[! CoprimeQ[k + p #, Q], k++]; k - 1] &, P]], {n, 4}] // Flatten (* Michael De Vlieger, Sep 11 2018 *)
Comments