A245942
Irregular triangle read by rows of a variation of the Collatz iteration with signature (2,3).
Original entry on oeis.org
5, 10, 7, 16, 6, 5, 10, 7, 16, 7, 16, 8, 6, 5, 10, 7, 16, 9, 22, 13, 34, 19, 52, 28, 16, 10, 7, 16, 11, 28, 16, 12, 8, 6, 5, 10, 7, 16, 13, 34, 19, 52, 28, 16, 14, 9, 22, 13, 34, 19, 52, 28, 16, 15, 40, 22, 13, 34, 19, 52, 28, 16, 16, 10, 7, 16, 17, 46, 25, 70
Offset: 1
Some initial rows of the irregular array (r,j):
r: j = (1, 2, 3, ... )
1: (5, 10, 7, 16),
2: (6, 5, 10, 7, 16),
3: (7, 16),
4: (8, 6, 5, 10, 7, 16),
5: (9, 22, 13, 34, 19, 52, 28, 16),
6: (10, 7, 16),
7: (11, 28, 16),
8: (12, 8, 6, 5, 10, 7, 16),
8: (13, 34, 19, 52, 28, 16),
10: (14, 9, 22, 13, 34, 19, 52, 28, 16),
11: (15, 40, 22, 13, 34, 19, 52, 28, 16),
12: (16, 10, 7, 16)
Cf.
A245943 for variation type (a=1, b:even).
Cf.
A245944 for variation type (a=2, b:even).
Cf.
A242030 for variation type (a=1, b:odd).
-
{for(n=5, 17, x=n; print1(x,", "); until(x==16, if(x%2,x=x*3-5,x=x/2+2);print1(x,", ")))} \\ Prints flattened triangle.
-
variation(a,b) = {if(!(a==1||a==2), print("Enter a=1 or a=2"), h=6^(b%2)*a+b+b%2; c=ceil(b/2); d=2*-b+a^(a%2); for(r=1,12, x=r+b+b%2; print1(r,": (",x); until(x==h, if(x%2, x=3*x+d, x=x/2+c); print1(", ",x)); print("),")))} \\ Generalized version.
{variation(2,3)} \\ Prints first 12 rows of this irregular array.
A242030
Irregular triangle read by rows of a variation of the Collatz iteration with signature (1,1).
Original entry on oeis.org
3, 8, 4, 3, 8, 5, 14, 8, 6, 4, 3, 8, 7, 20, 11, 32, 17, 50, 26, 14, 8, 8, 5, 14, 8, 9, 26, 14, 8, 10, 6, 4, 3, 8, 11, 32, 17, 50, 26, 14, 8, 12, 7, 20, 11, 32, 17, 50, 26, 14, 8, 13, 38, 20, 11, 32, 17, 50, 26, 14, 8, 14, 8, 15, 44, 23, 68, 35, 104, 53, 158
Offset: 1
Some initial rows of the irregular array (r,j):
r: j = (1, 2, 3, ... )
1: (3, 8),
2: (4, 3, 8),
3: (5, 14, 8),
4: (6, 4, 3, 8),
5: (7, 20, 11, 32, 17, 50, 26, 14, 8),
6: (8, 5, 14, 8),
7: (9, 26, 14, 8),
8: (10, 6, 4, 3, 8),
9: (11, 32, 17, 50, 26, 14, 8),
10: (12, 7, 20, 11, 32, 17, 50, 26, 14, 8),
11: (13, 38, 20, 11, 32, 17, 50, 26, 14, 8),
12: (14, 8)
Cf.
A245942 for variation type (a=2, b:odd).
Cf.
A245943 for variation type (a=1, b:even).
Cf.
A245944 for variation type (a=2, b:even).
-
{for(n=3, 14, x=n; print1(x,", "); until(x==8, if(x%2,x=x*3-1,x=x/2+1);print1(x,", ")))} \\ Prints flattened triangle.
-
variation(a,b) = {if(!(a==1||a==2), print("Enter a=1 or a=2"), h=6^(b%2)*a+b+b%2; c=ceil(b/2); d=2*-b+a^(a%2); for(r=1,12, x=r+b+b%2; print1(r,": (",x); until(x==h, if(x%2, x=3*x+d, x=x/2+c); print1(", ",x)); print("),")))} \\ Generalized version.
{variation(1,1)} \\ Prints first 12 rows of this irregular array.
A245944
Irregular triangle read by rows of a variation of the Collatz iteration with signature (2,4).
Original entry on oeis.org
5, 8, 6, 6, 5, 8, 6, 7, 14, 9, 20, 12, 8, 6, 8, 6, 9, 20, 12, 8, 6, 10, 7, 14, 9, 20, 12, 8, 6, 11, 26, 15, 38, 21, 56, 30, 17, 44, 24, 14, 9, 20, 12, 8, 6, 12, 8, 6, 13, 32, 18, 11, 26, 15, 38, 21, 56, 30, 17, 44, 24, 14, 9, 20, 12, 8, 6, 14, 9, 20, 12, 8, 6
Offset: 1
Some initial rows of the irregular array (r,j):
r: j = (1, 2, 3, ... )
1: (5, 8, 6),
2: (6, 5, 8, 6),
3: (7, 14, 9, 20, 12, 8, 6),
4: (8, 6),
5: (9, 20, 12, 8, 6),
6: (10, 7, 14, 9, 20, 12, 8, 6),
7: (11, 26, 15, 38, 21, 56, 30, 17, 44, 24, 14, 9, 20, 12, 8, 6),
8: (12, 8, 6),
9: (13, 32, 18, 11, 26, 15, 38, 21, 56, 30, 17, 44, 24, 14, 9, 20, 12, 8, 6),
10: (14, 9, 20, 12, 8, 6),
11: (15, 38, 21, 56, 30, 17, 44, 24, 14, 9, 20, 12, 8, 6),
12: (16, 10, 7, 14, 9, 20, 12, 8, 6)
Cf.
A245942 for variation type (a=2, b:odd).
Cf.
A245943 for variation type (a=1, b:even).
Cf.
A242030 for variation type (a=1, b:odd).
-
{for(n=5, 16, x=n; print1(x,", "); until(x==6, if(x%2,x=x*3-7,x=x/2+2);print1(x,", ")))} \\ Prints flattened triangle.
-
variation(a,b) = {if(!(a==1||a==2), print("Enter a=1 or a=2"), h=6^(b%2)*a+b+b%2; c=ceil(b/2); d=2*-b+a^(a%2); for(r=1,12, x=r+b+b%2; print1(r,": (",x); until(x==h, if(x%2, x=3*x+d, x=x/2+c); print1(", ",x)); print("),")))} \\ Generalized version.
{variation(2,4)} \\ Prints first 12 rows of this irregular array.
Showing 1-3 of 3 results.
Comments