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-3 of 3 results.

A350279 Irregular triangle T(n,k) read by rows in which row n lists the iterates of the Farkas map (A349407) from 2*n - 1 to 1.

Original entry on oeis.org

1, 3, 1, 5, 3, 1, 7, 11, 17, 9, 3, 1, 9, 3, 1, 11, 17, 9, 3, 1, 13, 7, 11, 17, 9, 3, 1, 15, 5, 3, 1, 17, 9, 3, 1, 19, 29, 15, 5, 3, 1, 21, 7, 11, 17, 9, 3, 1, 23, 35, 53, 27, 9, 3, 1, 25, 13, 7, 11, 17, 9, 3, 1, 27, 9, 3, 1, 29, 15, 5, 3, 1
Offset: 1

Views

Author

Paolo Xausa, Dec 22 2021

Keywords

Examples

			Written as an irregular triangle, the sequence begins:
  n\k   1   2   3   4   5   6   7
  -------------------------------
   1:   1
   2:   3   1
   3:   5   3   1
   4:   7  11  17   9   3   1
   5:   9   3   1
   6:  11  17   9   3   1
   7:  13   7  11  17   9   3   1
   8:  15   5   3   1
   9:  17   9   3   1
  10:  19  29  15   5   3   1
  11:  21   7  11  17   9   3   1
  12:  23  35  53  27   9   3   1
		

Crossrefs

Cf. A349407, A375909 (# of iterations), A375910 (row sums), A375911 (row maxs).
Cf. A070165.

Programs

  • Mathematica
    FarkasStep[x_] := Which[Divisible[x, 3], x/3, Mod[x, 4] == 3, (3*x + 1)/2, True, (x + 1)/2];
    Array[Most[FixedPointList[FarkasStep, 2*# - 1]] &, 15] (* Paolo Xausa, Sep 03 2024 *)

Formula

T(n,1) = 2*n-1; T(n,k) = A349407((T(n,k-1)+1)/2), where n >= 1 and k >= 2.

A375909 Number of iterations of the Farkas map (A349407) to reach 1 starting from 2*n - 1.

Original entry on oeis.org

0, 1, 2, 5, 2, 4, 6, 3, 3, 5, 6, 6, 7, 3, 4, 9, 5, 5, 6, 7, 7, 7, 4, 8, 8, 4, 4, 10, 6, 6, 10, 7, 6, 6, 7, 7, 7, 8, 8, 9, 4, 9, 8, 5, 5, 9, 10, 10, 9, 6, 5, 11, 6, 6, 11, 7, 7, 7, 8, 8, 11, 8, 8, 13, 8, 8, 7, 5, 8, 8, 9, 9, 8, 9, 9, 10, 5, 10, 10, 5, 5, 10, 11, 11, 9
Offset: 1

Views

Author

Paolo Xausa, Sep 02 2024

Keywords

Examples

			a(10) = 5 because the trajectory 19 -> 29 -> 15 -> 5 -> 3 -> 1 takes 5 steps.
		

Crossrefs

(Row lengths of A350279) - 1.

Programs

  • Mathematica
    FarkasStep[x_] := Which[Divisible[x, 3], x/3, Mod[x, 4] == 3, (3*x + 1)/2, True, (x + 1)/2];
    Array[Length[FixedPointList[FarkasStep, 2*# - 1]] - 2 &, 100]

A375910 Row sums of A350279.

Original entry on oeis.org

1, 4, 9, 48, 13, 41, 61, 24, 30, 72, 69, 151, 86, 40, 53, 538, 74, 128, 109, 100, 110, 182, 69, 507, 135, 81, 93, 395, 129, 217, 599, 132, 139, 249, 220, 460, 182, 161, 177, 850, 121, 340, 267, 140, 158, 448, 631, 1625, 232, 173, 182, 708, 233, 389, 504, 220, 242, 428
Offset: 1

Views

Author

Paolo Xausa, Sep 02 2024

Keywords

Comments

1

Crossrefs

Programs

  • Mathematica
    FarkasStep[x_] := Which[Divisible[x, 3], x/3, Mod[x, 4] == 3, (3*x + 1)/2, True, (x + 1)/2];
    Array[Total[FixedPointList[FarkasStep, 2*# - 1]] - 1 &, 100]

Formula

a(n) = Sum_{k = 1..A375909(n) + 1} A350279(n,k).
Showing 1-3 of 3 results.