A054713 Number of powers of 13 modulo n.
1, 1, 1, 1, 4, 1, 2, 2, 3, 4, 10, 1, 2, 2, 4, 4, 4, 3, 18, 4, 2, 10, 11, 2, 20, 2, 9, 2, 14, 4, 30, 8, 10, 4, 4, 3, 36, 18, 2, 4, 40, 2, 21, 10, 12, 11, 46, 4, 14, 20, 4, 2, 13, 9, 20, 2, 18, 14, 58, 4, 3, 30, 6, 16, 5, 10, 66, 4, 11, 4, 70, 6, 72, 36, 20, 18, 10, 2, 39, 4, 27, 40, 82, 2, 4
Offset: 1
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
Crossrefs
Programs
-
Mathematica
a[n_] := Module[{e = IntegerExponent[n, 13]}, e + MultiplicativeOrder[13, n/13^e]]; Array[a, 100] (* Amiram Eldar, Aug 25 2024 *)