cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

User: Nicolas Vaillant

Nicolas Vaillant's wiki page.

Nicolas Vaillant has authored 7 sequences.

A324246 Irregular triangle T read by rows: T(n, k) = (A324038(n, k) - 1)/2.

Original entry on oeis.org

0, 2, 1, 10, 6, 42, 8, 26, 56, 170, 5, 34, 17, 106, 37, 226, 113, 682, 3, 22, 138, 11, 70, 426, 150, 906, 75, 454, 2730, 4, 14, 90, 184, 554, 7, 46, 282, 568, 1706, 200, 602, 1208, 3626, 100, 302, 1818, 3640, 10922, 18, 9, 58, 120, 362, 738, 369, 2218, 30, 186, 376, 1130, 2274, 1137, 6826, 133, 802, 401, 2410, 805, 4834, 2417, 14506, 402, 201, 1210, 2424, 7274, 14562, 7281, 43690
Offset: 0

Author

Nicolas Vaillant, Philippe Delarue, Wolfdieter Lang, May 09 2019

Keywords

Comments

The length of row n is A324039, for n >= 0.
This is the incomplete binary tree corresponding to the modified Collatz map f (from the Vaillant and Delarue link) given in A324245.
The branches of this tree, called CfTree, give the iterations under the Vaillant and Delarue map f of the vertex labels of level n until label 0 on level n = 0 is reached.
The out-degree of a vertex label T(n, k), for n >= 1, is 1 if T(n, k) == 1 (mod 3) and 2 for all other labels. For level n = 0 with vertex label 0 this rule does not hold, it has out-degree 1, not 2.
The number of vertex labels on level n which are 1 (mod 3) is given in A324040.
The corresponding tree CfsTree with only odd vertex labels t(n, k) = 2*T(n,k) + 1 is given in A324038.
The Collatz conjecture is that all nonnegative integers appear in this CfTree. Because the sets of labels on the levels are pairwise disjoint, these numbers will then appear just once.
For this tree see Figure 2 in the Vaillant-Delarue link. It is also shown in the W. Lang link given in A324038.

Examples

			The irregular triangle T begins (the brackets combine pairs coming from out-degree 2 vertices of the preceding level):
----------------------------------------------------------
n\k   1  2    3   4     5    6     7   8   9  10    11 ...
0:    0
1:    2
2:   (1 10)
3:    6 42
4:   (8 26) (56 170)
5:   (5 34) (17 106)  (37  226) (113 682)
6:   (3 22) 138 (11    70) 426   150 906 (75 454) 2730
...
Row n = 7: (4 14) 90 (184 554)  (7 46) 282 (568 1706) (200 602) (1208 3626) (100 302) 1818 (3640 10922);
Row n = 8: 18 (9 58) (120 362) 738 (369 2218) 30 186 (376 1130) 2274 (1137 6826) (133 802) (401 2410) (805 4834) (2417 14506) 402 (201 1210) (2424 7274) 14562 (7281 43690).
...
The successors of T(1,1) = 2 == 2 (mod 3) are (-1 + 2*2 )/3 = 1 and 2*(1 + 2*2) = 10. The successor of T(2, 1) = 1  == 1 (mod 3) is 2*(1 + 2*1) = 6. The successors of T(3, 1) = 6  == 0 (mod 3) are 4*6/3 = 8 and 2*(1 + 2*6) = 26.
		

Crossrefs

Cf. A248573 (Collatz-Terras tree), A324038 (CfsTree), A324039, A324040, A324245.

Formula

Recurrence for the set of vertex labels CfTree(n) = {T(n, k), k = 1..A324039(n)} on level (row) n:
This set is obtained, with the map f from A324245, from CfTree(0) = {0}, CfTree(1) = {2}, and for n >= 2 CfTree(n) = {m >= 0: f(m) = T(n-1, k), for k = 1.. A324039(n-1)}.
Explicit form for the successor of T(n, k) on row (level) n+1, for n >= 1:
a label with T(n, k) == 1 (mod 3) produces the label 2*(1 + 2*T(n, k)) on row n+1; label T(n, k) == 0 (mod 3) produces the two labels 4*T(n, k)/3 and 2*(1 + 2*T(n, k)); label T(n, k) == 2 (mod 3) produces the two labels (-1 + 2*T(n, k))/3 and 2*(1 + 2*T(n, k)).

A324245 The modified Collatz map considered by Vaillant and Delarue.

Original entry on oeis.org

0, 2, 0, 5, 3, 8, 1, 11, 6, 14, 2, 17, 9, 20, 3, 23, 12, 26, 4, 29, 15, 32, 5, 35, 18, 38, 6, 41, 21, 44, 7, 47, 24, 50, 8, 53, 27, 56, 9, 59, 30, 62, 10, 65, 33, 68, 11, 71, 36, 74, 12, 77, 39, 80, 13, 83, 42, 86, 14, 89, 45, 92, 15, 95, 48, 98, 16, 101, 51, 104, 17, 107, 54, 110, 18, 113, 57, 116, 19, 119, 60
Offset: 0

Author

Nicolas Vaillant, Philippe Delarue, Wolfdieter Lang, May 09 2019

Keywords

Comments

This is a modified Collatz-Terras map (A060322), called in the Vaillant and Delarue link f.
The Collatz conjecture: iterations of the map f = a: N_0 -> N_0 with n -> a(n) lead always to 0.
The minimal number k with a^{[k]}(n) = 0 is given by A324037(n).
The tree CfTree, related to this map, giving the branches which lead to 0 for each vertex label of level n >= 0 is given in A324246.

Crossrefs

Programs

  • Mathematica
    a[n_]:=If[OddQ@n,(3n+1)/2,If[Mod[n,4]==0,3n/4,(n-2)/4]];Array[a,51,0] (* Giorgos Kalogeropoulos, Dec 08 2021 *)
  • PARI
    A324245(n) = if(n%2, (1+3*n)/2, if(!(n%4), 3*(n/4), (n-2)/4)); \\ (After Mathematica-code) - Antti Karttunen, Dec 09 2021

Formula

a(n) = (3*n+1)/2 if n is odd, 3*n/4 if n == 0 (mod 4), and (n-2)/4 if n == 2 (mod 4).
a(n) = A349414(n) + n. - Ruud H.G. van Tol, Dec 08 2021
G.f.: x*(2 + 5*x^2 + 3*x^3 + 4*x^4 + x^5 + x^6)/(1 - x^4)^2. - Stefano Spezia, Dec 08 2021

Extensions

More terms from Antti Karttunen, Dec 09 2021

A324040 Number of vertex labels congruent to 1 modulo 3 of level n of the irregular triangle A324246.

Original entry on oeis.org

0, 0, 2, 0, 0, 5, 3, 7, 12, 12, 30, 51, 75, 139, 232, 365, 640, 1029, 1717, 2872, 4789, 7996, 13338, 22288, 36896, 61942, 102746, 170993, 286029, 476053, 793800
Offset: 0

Author

Nicolas Vaillant, Philippe Delarue, Wolfdieter Lang, May 09 2019

Keywords

Comments

a(n) is also the number of vertex labels congruent to 3 modulo 6 of row n of the irregular triangle A324038.
This entry is interesting because it determines the number of vertices with out-degree 1 of level n, for n >= 1, of the modified reduced Collatz trees A324038 and A324246. All other vertices have out-degree 2. Hence this sequence determines recursively the number A324039(n) of vertices of label n of these two trees.

Crossrefs

Formula

a(n) = 2*A324039(n) - A324039(n-1), for n >= 1, and a(0) = 0. Implied by the definition of a(n) given in the name.

A324039 Row lengths of the irregular triangles A324038 and A324246.

Original entry on oeis.org

1, 1, 2, 2, 4, 8, 11, 19, 31, 50, 88, 146, 241, 407, 675, 1118, 1871, 3102, 5175, 8633, 14394, 23999, 40002, 66666, 111044, 185192, 308442, 514138, 857283, 1428537, 2381021
Offset: 0

Author

Nicolas Vaillant, Philippe Delarue, Wolfdieter Lang, May 09 2019

Keywords

Examples

			a(5) = 8 = 2*a(4) because a_1(4) =  A324040(4) = 0.
a(6) =  2*a(5) - 5 = 16 - 5 = 11  because a_1(5) = A324040(5) = 5.
		

Crossrefs

Formula

a(n) = 2*a(n-1) - a_1(n-1), for n >= 2, and a(0) = 1 = a(1), where a_1(k) is the number of entries 1 (mod 3) in row k of A324246 given in A324040(k).

A324038 Irregular triangle T read by rows: Row n gives the vertex labels of level n of the tree related to the modified reduced Collatz map A324036.

Original entry on oeis.org

1, 5, 3, 21, 13, 85, 17, 53, 113, 341, 11, 69, 35, 213, 75, 453, 227, 1365, 7, 45, 277, 23, 141, 853, 301, 1813, 151, 909, 5461, 9, 29, 181, 369, 1109, 15, 93, 565, 1137, 3413, 401, 1205, 2417, 7253, 201, 605, 3637, 7281, 21845, 37, 19, 117, 241, 725, 1477, 739, 4437, 61, 373, 753, 2261, 4549, 2275, 13653, 267, 1605, 803, 4821, 1611, 9669, 4835, 29013, 805, 403, 2421, 4849, 14549, 29125, 14563, 87381
Offset: 0

Author

Nicolas Vaillant, Philippe Delarue, Wolfdieter Lang, May 09 2019

Keywords

Comments

The length of row n is A324039, for n >= 0.
The branches of this incomplete binary tree, called CfsTree, give the iterations of the vertex labels of level n of the modified reduced Collatz map Cfs defined by Cfs(2*k+1) = A324036(k), for k >= 0, until at level n = 0 the label 1 is reached for the first time.
The out-degree of a vertex label T(n, k), for n >= 1, is 1 if T(n, k) == 3 (mod 6) and 2 for all other vertices. For level n = 0 with vertex label 1 this rule does not hold, it has out-degree 1, not 2.
The number of vertex labels on level n which are 3 (mod 6) is given by A324040(n).
The corresponding tree with nonnegative vertex labels t(n, k) = (T(n,k) - 1)/2 is given in A324246.
The Collatz conjecture is that all positive odd integers appear in this CfsTree. Because the sets of labels on the levels are pairwise disjoint these odd numbers will then appear just once.
For this tree see Figure 1 in the Vaillant-Delarue link. It is also shown in the W. Lang link.

Examples

			The irregular triangle T begins (the brackets combine pairs coming from out-degree 2 vertices of the preceding level):
n/k   1  2     3   4     5    6     7    8    9  10    11 ...
-------------------------------------------------------------
0:   1
1:   5
2:  (3  21)
3:  13  85
4:  (17 53) (113 341)
5:  (11 69)  (35 213)  (75  453) (227 1365)
6:  ( 7 45)  277 (23   141) 853   301 1813 (151 909) 5461
...
Row n = 7: (9 29) 181 (369 1109) (15 93)  565 (1137  3413) (401 1205) (2417 7253) (201 605) 3637 (7281 21845);
Row n = 8: 37 (19 117) (241 725) 1477 (739 4437) 61 373 (753 2261) 4549 (2275 13653) (267 1605) (803 4821) (1611 9669) (4835 29013) 805 (403 2421) (4849 14549) 29125 (14563 87381).
...
The successors of T(1,1) = 5 == 5 (mod 6) are (2*5 - 1)/3 = 3 and 4*5 + 1 = 21. The successor of T(2, 1) = 3 == 3 (mod 6) is 4*3 + 1 = 13. The successors of T(3, 1) = 13 == 1 (mod 6) are (4*13 - 1)/3 = 17 and 4*13 + 1 = 53.
		

Crossrefs

Formula

Recurrence: CfsTree(n), the list of vertex labels {T(n, k), for k = 1..A324038(n)} of level n, is obtained from: CfsTree(0) = {1}, CfsTree(1) = {5}, and for n >= 2, CfsTree(n) = {2*m + 1 >= 1: fs(2*m+1) = T(n-1, k)), for k = 1..A324038(n-1)}, with fs from A324036.
Explicit form for the successor(s) of T(n, k) on level n+1, for n >= 1:
a vertex label with T(n, k) == 3 (mod 6) produces the label 4*T(n, k) + 1 on level n+1; label T(n, k) == 1 (mod 6) produces the two labels (4*T(n, k) - 1)/3 and 4*T(n, k) + 1; label T(n, k) == 5 (mod 6) produces the two labels (2*T(n, k) - 1)/3 and 4*T(n, k) + 1.

A324037 The minimal number of iterations to reach 1 of the modified reduced Collatz function, defined for odd numbers 1 + 2*n in A324036 (assuming the Collatz conjecture).

Original entry on oeis.org

0, 2, 1, 6, 7, 5, 3, 7, 4, 8, 2, 6, 9, 48, 7, 46, 10, 5, 8, 14, 47, 11, 6, 45, 9, 10, 4, 49, 12, 13, 8, 47, 10, 11, 5, 44, 50, 5, 9, 15, 9, 48, 3, 12, 12, 40, 7, 46, 51, 10, 10, 38, 16, 43, 49, 30, 4, 13, 8, 14, 41, 19, 47, 20, 52, 11, 11, 16, 39, 17, 6
Offset: 0

Author

Nicolas Vaillant, Philippe Delarue, Wolfdieter Lang, May 09 2019

Keywords

Comments

The Collatz conjecture is that a(n) is finite. If 1 should never be reached then a(n) = -1.
Compare this sequence with the analogous one A075680(n+1) for the reduced Collatz map of A075677.
a(n) gives also the minimal number of iterations of the Vaillant-Delarue map f, defined in A324245, acting on n to reach 0 (assuming the Collatz conjecture).
For the link to the Vaillant-Delarue paper (where fs is called f_s) see A324036.

Examples

			a(4) = 7 because 1 + 2*4 = 9 and the 7 fs iterations acting on 9 are 7, 11, 17, 13, 3, 5, 1.
Compare this to the reduced Collatz map given in A075677 which needs only 6 = A075680(5) iterations 7, 11, 17, 13, 5, 1. The additional step in the fs case follows 13 == 5 mod(8).
		

Crossrefs

Formula

fs^[a(n)](1 + 2*n) = 1 but fs^[a(n)-1](1 + 2*n) is not 1 (for all n with finite a(n)), where fs is the modified reduced Collatz map defined for 1 + 2*n in A324036(n), for n >= 1, and a(0) = 0.

A324036 Modified reduced Collatz map fs acting on positive odd integers.

Original entry on oeis.org

1, 5, 1, 11, 7, 17, 3, 23, 13, 29, 5, 35, 19, 41, 7, 47, 25, 53, 9, 59, 31, 65, 11, 71, 37, 77, 13, 83, 43, 89, 15, 95, 49, 101, 17, 107, 55, 113, 19, 119, 61, 125, 21, 131, 67, 137, 23, 143, 73, 149, 25, 155, 79, 161, 27, 167, 85, 173, 29, 179, 91, 185, 31, 191, 97, 197, 33, 203, 103, 209
Offset: 0

Author

Nicolas Vaillant, Philippe Delarue, Wolfdieter Lang, May 08 2019

Keywords

Comments

This is a modification of the reduced Collatz map given in A075677.
The Collatz conjecture is that iteration of the map fs leads to 1 for all positive odd integers.
In the Vaillant-Delarue (V-D) reference the present map fs: Odd -> Odd, 2*n+1 -> a(n) = fs(2*n+1), for n >= 0, is called f_{s}. The differences from b(n) = A075677(n+1) = fCr(2*n+1) (called f_{cr} in V-D) occur for the positions n = 2 + 4*k, for k >= 1: b(2 + 4*k) = b(k) = A075677(k+1) but a(2 + 4*k) = 1 + 2*k, which differs.
The advantage of the map fs (or a) over fCr (or b) is an explicit formula over a recurrence.
Additional steps are introduced in the iteration of fs versus fCr. This leads to an incomplete binary tree, called CfsTree, given in A324038. No such tree is available for fCr.
Such additional steps in fs can only occur after odd numbers congruent to 5 modulo 8: fs(5 + 8*k) = a(2 + 4*k) = 1 + 2*k and fs(1 + 2*k) = a(k). On the other hand, fCr(5 + 8*k) = b(2 + 4*k) = b(k).
The appearance of exactly N consecutive steps in fs versus fCr, for N >= 2, can be shown recursively to start with the odd numbers O(N;k) = 1 + 4*O(N-1;k), for N >= 3, with input O(2;k) = 53 + (4^3)*k. These are the numbers O(N;k) = A072197(N) + A000302(N+1)*k, for N >= 2. Therefore only one additional step follows directly after an odd number 5 (mod 8) if it is not of the O(N;k) type for N >= 2.
The minimal number of iterations of function fs acting on 2*n + 1 (or a acting on n), for n >= 0, to reach 1 is given in A324037 (if for very large n the number 1 should not be reached A324037(n) is set to -1).

Examples

			Iteration of fs on 11: 11, 17, 13, 3, 5, 1, whereas for fCr: 11, 17, 13 , 5, 1. The additional step (N = 1) occurs for 13 == 5 (mod 8), and 13 does not belong to the O(N;k) sets for N >= 2.
The first additional N = 2 steps occur for 53 = a(26): 53, 13, 3, 5, 1, versus iteration of fCr: 53, 5, 1. Such N = 2 steps occur precisely after 53 + 64*k as 13 + 16*k and 3 + 4*k.
The first additional N = 3 steps occur for 213 = a(106): 213, 53, 13, 3, 5, 1 versus 213, 5, 1 for fCr.
The first additional N = 4 steps occur for 853 = a(426): 853, 213, 53, 13, 3, 5, 1 versus 853, 5, 1 for fCr.
		

Crossrefs

Programs

  • PARI
    a(n) = my(m=Mod(n,4)); if (m==0, (2 + 3*n)/2, if (m==2, n/2, 2 + 3*n)); \\ Michel Marcus, Aug 10 2023

Formula

a(n) = fs(1 + 2*n) = (2 + 3*n)/2 if n == 0 (mod 4), a(n) = 2 + 3*n, for n == 1 or 3 (mod 4), and a(n) = n/2 if n == 2 (mod 4). This corresponds to fs(1 + 8*k) = 1 + 6*k, fs(3 + 8*k) = 5 + 12*k, fs(5 + 8*k) = 1 + 2*k, and fs(7 + 8*k) = 11 + 12*k, for k >= 0.
Conjectures from Colin Barker, Oct 14 2019: (Start)
G.f.: (1 + 5*x + x^2 + 11*x^3 + 5*x^4 + 7*x^5 + x^6 + x^7) / ((1 - x)^2*(1 + x)^2*(1 + x^2)^2).
a(n) = 2*a(n-4) - a(n-8) for n>7.
(End)

Extensions

More terms from Michel Marcus, Aug 10 2023