A070726 a(n) = n^7 mod 46.
0, 1, 36, 25, 8, 17, 26, 5, 12, 27, 14, 7, 16, 9, 42, 11, 18, 43, 6, 15, 44, 33, 22, 23, 24, 13, 2, 31, 40, 3, 28, 35, 4, 37, 30, 39, 32, 19, 34, 41, 20, 29, 38, 21, 10, 45, 0, 1, 36, 25, 8, 17, 26, 5, 12, 27, 14, 7, 16, 9, 42, 11, 18, 43, 6, 15, 44, 33, 22, 23, 24, 13, 2, 31, 40
Offset: 0
Keywords
Links
- Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).
Crossrefs
CF. A001015 (n^7).
Programs
-
Mathematica
PowerMod[Range[0,80],7,46] (* Harvey P. Dale, Mar 14 2023 *)
-
PARI
a(n)=(n^7)%46 \\ Edward Jiang, Sep 06 2014
-
PARI
a(n) = lift(Mod(n, 46)^7); \\ Michel Marcus, Jun 15 2018
-
Sage
[power_mod(n,7,46)for n in range(0, 75)] # Zerinvary Lajos, Oct 29 2009