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

A023153 Number of cycles of function f(x) = x^2 mod n.

Original entry on oeis.org

1, 2, 2, 2, 2, 4, 3, 2, 3, 4, 3, 4, 3, 6, 4, 2, 2, 6, 4, 4, 6, 6, 3, 4, 3, 6, 4, 6, 4, 8, 6, 2, 6, 4, 6, 6, 4, 8, 6, 4, 3, 12, 7, 6, 6, 6, 4, 4, 7, 6, 4, 6, 3, 8, 6, 6, 8, 8, 3, 8, 6, 12, 10, 2, 6, 12, 6, 4, 6, 12, 7, 6, 4, 8, 6, 8, 10, 12, 6, 4, 5, 6, 4, 12, 4, 14, 8, 6, 3, 12, 10, 6, 12, 8, 8, 4, 3, 14, 10, 6
Offset: 1

Views

Author

Keywords

Comments

Not multiplicative; the smallest counterexample is a(63). - T. D. Noe, Nov 14 2006

References

  • Earle Blanton, Spencer Hurd and Judson McCranie, On the Digraph Defined by Squaring Mod m, When m Has Primitive Roots, Congressus Numerantium, vol. 82, 167-177, 1992.

Crossrefs

Cf. A023154-A023161 (cycles of the functions f(x)=x^k mod n for k=3..10).

Programs

  • Mathematica
    Table[Length[ConnectedComponents[Graph[Range[0,n-1],Table[UndirectedEdge[i,Mod[i^2,n]],{i,0,n-1}]]]],{n,100}] (* Keyang Li, Nov 04 2024 *)

Formula

In case (Z/nZ)^* is cyclic there is a formula (see Chasse and Rogers). Let C_m denote the cyclic group of order m. Let a(m) denote the number of cycles in the graph of C_m relative to the mapping f. Then the number of cycles equals a(m) = Sum_{d|n} phi(d)/ord_d(2). - Pieter Moree, Jul 04 2002

A023154 Number of cycles of function f(x) = x^3 mod n.

Original entry on oeis.org

1, 2, 3, 3, 4, 6, 3, 5, 3, 8, 5, 9, 4, 6, 12, 7, 8, 6, 3, 12, 9, 10, 7, 15, 8, 8, 3, 9, 8, 24, 5, 11, 15, 16, 12, 9, 4, 6, 12, 20, 14, 18, 5, 15, 12, 14, 7, 21, 5, 16, 24, 12, 16, 6, 22, 15, 9, 16, 5, 36, 8, 10, 9, 15, 17, 30, 7, 24, 21, 24, 11, 15, 6, 8, 24, 9, 15, 24, 11, 30, 3, 28, 13, 27, 37
Offset: 1

Views

Author

Keywords

Comments

Not multiplicative; the smallest counterexample is a(55). - T. D. Noe, Nov 14 2006

Crossrefs

Cf. A023153-A023161 (cycles of the functions f(x)=x^k mod n for k=2..10)

A023160 Number of cycles of function f(x) = x^9 mod n.

Original entry on oeis.org

1, 2, 3, 3, 5, 6, 3, 5, 3, 10, 7, 9, 5, 6, 15, 9, 13, 6, 3, 15, 9, 14, 7, 15, 13, 10, 3, 9, 13, 30, 7, 17, 21, 26, 15, 9, 5, 6, 15, 25, 25, 18, 7, 21, 15, 14, 7, 27, 7, 26, 39, 15, 21, 6, 35, 15, 9, 26, 7, 45, 13, 14, 9, 25, 25, 42, 7, 39, 21, 30, 19, 15, 9, 10, 39, 9, 21, 30, 11, 45, 3, 50, 23
Offset: 1

Views

Author

Keywords

Comments

Not multiplicative; the smallest counterexample is a(187). - T. D. Noe, Nov 14 2006

Crossrefs

Cf. A023153-A023161 (cycles of the functions f(x)=x^k mod n for k=2..10)

A023155 Number of cycles of function f(x) = x^4 mod n.

Original entry on oeis.org

1, 2, 2, 2, 2, 4, 4, 2, 4, 4, 4, 4, 4, 8, 4, 2, 2, 8, 6, 4, 8, 8, 4, 4, 4, 8, 6, 8, 4, 8, 10, 2, 8, 4, 8, 8, 6, 12, 8, 4, 4, 16, 10, 8, 8, 8, 4, 4, 10, 8, 4, 8, 4, 12, 8, 8, 12, 8, 4, 8, 10, 20, 16, 2, 8, 16, 10, 4, 8, 16, 10, 8, 6, 12, 8, 12, 16, 16, 10, 4, 8, 8, 6, 16, 4, 20, 8, 8, 4, 16, 16, 8, 20, 8, 12
Offset: 1

Views

Author

Keywords

Comments

Not multiplicative; the smallest counterexample is a(275). - T. D. Noe, Nov 14 2006

Crossrefs

Cf. A023153-A023161 (cycles of the functions f(x)=x^k mod n for k=2..10)

A023156 Number of cycles of function f(x) = x^5 mod n.

Original entry on oeis.org

1, 2, 3, 3, 5, 6, 5, 5, 5, 10, 3, 9, 9, 10, 15, 9, 9, 10, 7, 15, 15, 6, 7, 15, 5, 18, 7, 15, 9, 30, 5, 13, 9, 18, 25, 15, 13, 14, 27, 25, 7, 30, 11, 9, 25, 14, 5, 27, 11, 10, 27, 27, 17, 14, 15, 25, 21, 18, 7, 45, 9, 10, 29, 17, 45, 18, 13, 27, 21, 50, 5, 25, 23, 26, 15, 21, 15, 54, 23, 45, 9
Offset: 1

Views

Author

Keywords

Comments

Not multiplicative; the smallest counterexample is a(63). - T. D. Noe, Nov 14 2006

Crossrefs

Cf. A023153-A023161 (cycles of the functions f(x)=x^k mod n for k=2..10)

Extensions

Corrected by Charles R Greathouse IV, Sep 02 2009

A023157 Number of cycles of function f(x) = x^6 mod n.

Original entry on oeis.org

1, 2, 2, 2, 2, 4, 2, 2, 2, 4, 6, 4, 2, 4, 4, 2, 2, 4, 2, 4, 4, 12, 3, 4, 6, 4, 2, 4, 5, 8, 6, 2, 12, 4, 4, 4, 2, 4, 4, 4, 6, 8, 5, 12, 4, 6, 4, 4, 5, 12, 4, 4, 3, 4, 12, 4, 4, 10, 4, 8, 6, 12, 4, 2, 4, 24, 3, 4, 6, 8, 21, 4, 2, 4, 12, 4, 12, 8, 3, 4, 2, 12, 3, 8, 4, 10, 10, 12, 3, 8, 4, 6, 12, 8, 4, 4, 2, 10, 12
Offset: 1

Views

Author

Keywords

Comments

Not multiplicative; the smallest counterexample is a(667). - T. D. Noe, Nov 14 2006

Crossrefs

Cf. A023153-A023161 (cycles of the functions f(x)=x^k mod n for k=2..10).

A023158 Number of cycles of function f(x) = x^7 mod n.

Original entry on oeis.org

1, 2, 3, 3, 4, 6, 7, 5, 7, 8, 5, 9, 10, 14, 12, 7, 10, 14, 11, 12, 21, 10, 5, 15, 8, 20, 11, 21, 4, 24, 13, 11, 15, 20, 28, 21, 16, 22, 30, 20, 14, 42, 7, 15, 28, 10, 5, 21, 7, 16, 30, 30, 8, 22, 22, 35, 33, 8, 11, 36, 22, 26, 49, 19, 43, 30, 13, 30, 15, 56, 5, 35, 26, 32, 24, 33, 35, 60
Offset: 1

Views

Author

Keywords

Comments

Not multiplicative; the smallest counterexample is a(55). - T. D. Noe, Nov 14 2006

Crossrefs

Cf. A023153-A023161 (cycles of the functions f(x)=x^k mod n for k=2..10)

A023159 Number of cycles of function f(x) = x^8 mod n.

Original entry on oeis.org

1, 2, 2, 2, 2, 4, 3, 2, 3, 4, 3, 4, 3, 6, 4, 2, 2, 6, 6, 4, 6, 6, 3, 4, 3, 6, 6, 6, 8, 8, 6, 2, 6, 4, 6, 6, 6, 12, 6, 4, 3, 12, 15, 6, 6, 6, 4, 4, 15, 6, 4, 6, 5, 12, 6, 6, 12, 16, 3, 8, 6, 12, 10, 2, 6, 12, 6, 4, 6, 12, 15, 6, 6, 12, 6, 12, 10, 12, 12, 4, 9, 6, 4, 12, 4, 30, 16, 6, 3, 12, 10, 6, 12, 8, 12, 4
Offset: 1

Views

Author

Keywords

Comments

Not multiplicative; the smallest counterexample is a(63). - T. D. Noe, Nov 14 2006

Crossrefs

Cf. A023153-A023161 (cycles of the functions f(x)=x^k mod n for k=2..10)
Showing 1-8 of 8 results.