A054715 Number of powers of 15 modulo n.
1, 1, 2, 2, 2, 2, 1, 2, 3, 2, 5, 3, 12, 1, 2, 2, 8, 3, 18, 3, 2, 5, 22, 3, 3, 12, 4, 2, 28, 2, 10, 2, 6, 8, 2, 4, 36, 18, 13, 3, 40, 2, 21, 10, 3, 22, 46, 3, 7, 3, 9, 12, 13, 4, 6, 2, 19, 28, 29, 3, 15, 10, 3, 4, 13, 6, 11, 8, 23, 2, 35, 4, 72, 36, 3, 18, 5, 13, 26, 3, 5, 40, 82, 3, 9, 21, 29
Offset: 1
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
Crossrefs
Programs
-
Mathematica
a[n_] := Module[{e = IntegerExponent[n, {3, 5}]}, Max[e] + MultiplicativeOrder[15, n/Times @@ ({3, 5}^e)]]; Array[a, 100] (* Amiram Eldar, Aug 25 2024 *)