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.

A379646 Irregular triangle T(n,k) where row n contains the trajectory of recursive mappings of A001175(x) starting with x = n and ending at fixed point A235249(n).

Original entry on oeis.org

1, 2, 3, 8, 12, 24, 3, 8, 12, 24, 4, 6, 24, 5, 20, 60, 120, 6, 24, 7, 16, 24, 8, 12, 24, 9, 24, 10, 60, 120, 11, 10, 60, 120, 12, 24, 13, 28, 48, 24, 14, 48, 24, 15, 40, 60, 120, 16, 24, 17, 36, 24, 18, 24, 19, 18, 24, 20, 60, 120, 21, 16, 24, 22, 30, 120, 23, 48, 24
Offset: 1

Views

Author

Michael De Vlieger, Dec 30 2024

Keywords

Comments

Row n contains recursive mappings of A001175(x) starting with x = n.

Examples

			Table begins:
   1;
   2,  3,   8,  12, 24;
   3,  8,  12,  24;
   4,  6,  24;
   5, 20,  60, 120;
   6, 24;
   7, 16,  24;
   8, 12,  24;
   9, 24;
  10, 60, 120;
  11, 10,  60, 120;
  12, 24;
  ...
		

Crossrefs

Programs

  • Mathematica
    q[{0, 1, }] := False; q[] := True;
    f[k_][{a_, b_, c_}] := {Mod[b, k], Mod[a + b, k], c + 1};
    s[1] := 1; s[k_] := s[k] = Which[
      PrimeQ[k] && k > 5, If[
        AnyTrue[PrimitiveRootList[k], Mod[#^2, k] == Mod[# + 1, k] &],
        k - 1,
        NestWhile[f[k], {1, 1, 1}, q][[-1]] ],
      PrimePowerQ[k], NestWhile[f[k], {1, 1, 1}, q][[-1]], True,
        LCM @@ Map[s[#] &, Power @@@ FactorInteger[k] ] ];
    Table[Most@ FixedPointList[s[#] &, n], {n, 24}]