login
A070623
a(n) = n^5 mod 40.
0
0, 1, 32, 3, 24, 5, 16, 7, 8, 9, 0, 11, 32, 13, 24, 15, 16, 17, 8, 19, 0, 21, 32, 23, 24, 25, 16, 27, 8, 29, 0, 31, 32, 33, 24, 35, 16, 37, 8, 39, 0, 1, 32, 3, 24, 5, 16, 7, 8, 9, 0, 11, 32, 13, 24, 15, 16, 17, 8, 19, 0, 21, 32, 23, 24, 25, 16, 27, 8, 29, 0, 31, 32, 33, 24, 35, 16
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, 1).
FORMULA
a(n) = a(n-40). - Wesley Ivan Hurt, Dec 26 2023
MATHEMATICA
PowerMod[Range[0, 80], 5, 40] (* Harvey P. Dale, Aug 25 2014 *)
PROG
(SageMath) [power_mod(n, 5, 40)for n in range(0, 77)] # Zerinvary Lajos, Nov 04 2009
(PARI) a(n)=n^5%40 \\ Charles R Greathouse IV, Apr 06 2016
CROSSREFS
Sequence in context: A396603 A298921 A070631 * A249597 A303322 A126654
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 13 2002
STATUS
approved