login
A070618
a(n) = n^5 mod 35.
1
0, 1, 32, 33, 9, 10, 6, 7, 8, 4, 5, 16, 17, 13, 14, 15, 11, 12, 23, 24, 20, 21, 22, 18, 19, 30, 31, 27, 28, 29, 25, 26, 2, 3, 34, 0, 1, 32, 33, 9, 10, 6, 7, 8, 4, 5, 16, 17, 13, 14, 15, 11, 12, 23, 24, 20, 21, 22, 18, 19, 30, 31, 27, 28, 29, 25, 26, 2, 3, 34, 0, 1, 32, 33, 9, 10, 6
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, 1).
FORMULA
a(n+35) = a(n). - David A. Corneth, Nov 08 2018
MATHEMATICA
PowerMod[Range[0, 80], 5, 35] (* Harvey P. Dale, Aug 16 2011 *)
PROG
(Sage) [power_mod(n, 5, 35) for n in range(0, 77)] # Zerinvary Lajos, Nov 04 2009
(Magma) [Modexp(n, 5, 35): n in [0..80]]; // Vincenzo Librandi, Aug 17 2011 - Jun 15 2016
(PARI) a(n)=n^5%35 \\ Charles R Greathouse IV, Apr 06 2016
(PARI) a(n) = lift(Mod(n, 35)^5); \\ Michel Marcus, Nov 08 2018
CROSSREFS
Cf. A000584 (n^5).
Sequence in context: A022366 A165853 A035037 * A070625 A115421 A108927
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 13 2002
STATUS
approved