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.

Showing 1-4 of 4 results.

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

Views

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)).

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

Views

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).

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

Views

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

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

Views

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.
Showing 1-4 of 4 results.