OFFSET
1,1
COMMENTS
The divide-or-choose-2 rule is a quadratic Collatz-type recursion where the map is defined with f(n) = n/2 if n is even, and f(n) = binomial(n, 2) if n is odd.
LINKS
Michel Marcus, Rows n = 1..100 of the triangle, flattened
Hassan Sedaghat, Bounded Orbits of Quadratic Collatz-type Recursions, arXiv:2004.07357 [math.DS], 2020.
Hassan Sedaghat, Dual Nature of Orbits of the Divide-or-Choose 2 Rule: A Quadratic Collatz-type Recursion, arXiv:2005.10712 [math.NT], 2020.
EXAMPLE
Triangle begins:
3;
5, 10;
9, 36, 18;
17, 136, 68, 34;
33, 528, 264, 132, 66;
...
MATHEMATICA
f[n_] := If[EvenQ[n], n/2, Binomial[n, 2]]; row[n_] := NestWhileList[f, n, f[#] != n &]; Join @@ Table[row[2^n + 1], {n, 1, 10}] (* Amiram Eldar, May 22 2020 *)
PROG
(PARI) f(n) = if (n%2, binomial(n, 2), n/2);
row(n) = my(m=2^n+1, v=vector(n)); v[1] = m; for (i=2, n, v[i] = f(v[i-1])); v;
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Michel Marcus, May 22 2020
STATUS
approved