login
A070625
a(n) = n^5 mod 42.
0
0, 1, 32, 33, 16, 17, 6, 7, 8, 39, 40, 23, 24, 13, 14, 15, 4, 5, 30, 31, 20, 21, 22, 11, 12, 37, 38, 27, 28, 29, 18, 19, 2, 3, 34, 35, 36, 25, 26, 9, 10, 41, 0, 1, 32, 33, 16, 17, 6, 7, 8, 39, 40, 23, 24, 13, 14, 15, 4, 5, 30, 31, 20, 21, 22, 11, 12, 37, 38, 27, 28, 29, 18, 19, 2
OFFSET
0,3
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, 1).
FORMULA
a(n) = a(n-42). - Wesley Ivan Hurt, Dec 26 2023
MATHEMATICA
PowerMod[Range[0, 80], 5, 42] (* Harvey P. Dale, May 02 2019 *)
PROG
(Sage) [power_mod(n, 5, 42)for n in range(0, 75)] # Zerinvary Lajos, Nov 04 2009
(PARI) a(n)=n^5%42 \\ Charles R Greathouse IV, Apr 06 2016
CROSSREFS
Sequence in context: A165853 A035037 A070618 * A115421 A108927 A242956
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 13 2002
STATUS
approved