A331118 Irregular triangle read by rows where row n lists primitive first differences in the reduced residue system of A002110(n).
2, 2, 4, 2, 4, 6, 2, 4, 6, 8, 10, 2, 4, 6, 8, 10, 12, 14, 2, 4, 6, 8, 10, 12, 14, 16, 18, 22, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 34, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36
Offset: 1
Examples
Triangle begins: n Row 1 2; 2 2, 4; 3 2, 4, 6; 4 2, 4, 6, 8, 10; 5 2, 4, 6, 8, 10, 12, 14; 6 2, 4, 6, 8, 10, 12, 14, 16, 18, 22; 7 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26; 8 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 34; ... (Triangle is organized so that the D appear in columns.) Row 1 = {2} because P(1) = 2 is prime and has only 2 itself in the cototient. Row 2 = {2, 4} since the numbers {1, 5} are coprime to P(2) = 6, and their difference is 4. Row 3 contains {2, 4, 6} since we encounter the run lengths 6 between 1 and 7, 4 between 7 and 11, and 2 between 11 and 13. The run lengths are repeated but no new lengths appear for P(3) = 30.
Links
- Michael De Vlieger, Table of n, a(n) for n = 1..5275 (rows 1 <= n <= 44, flattened)
- Mario Ziller, On differences between consecutive numbers coprime to primorials, arXiv:2007.01808 [math.NT], 2020.
Programs
-
Mathematica
Table[Block[{r = 1, s = {}}, Do[If[GCD[i, P] == 1, If[FreeQ[s, #], AppendTo[s, #]] &[i - r]; r = i], {i, 3, P/If[P > 6, 2, 1/2], 2}]; Union@ s], {P, FoldList[Times, Prime@ Range@ 8]}] // Flatten
Comments