The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A070721 n^7 mod 40. 0
 0, 1, 8, 27, 24, 5, 16, 23, 32, 9, 0, 11, 8, 37, 24, 15, 16, 33, 32, 19, 0, 21, 8, 7, 24, 25, 16, 3, 32, 29, 0, 31, 8, 17, 24, 35, 16, 13, 32, 39, 0, 1, 8, 27, 24, 5, 16, 23, 32, 9, 0, 11, 8, 37, 24, 15, 16, 33, 32, 19, 0, 21, 8, 7, 24, 25, 16, 3, 32, 29, 0, 31, 8, 17, 24, 35, 16 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,3 COMMENTS a(n)=A070502(n). [Proof: (n^7-n^4) ==0 (mod 40) is shown for n=0 to 39 explicitly. Then binomial expansion of (n+40)^7 and (n+40)^4 extend this by induction n-> n+40 to all the other indices.] - R. J. Mathar, Oct 30 2009 LINKS MATHEMATICA PowerMod[Range[0, 100], 7, 40] (* Harvey P. Dale, Aug 21 2012 *) PROG (Sage) [power_mod(n, 7, 40)for n in range(0, 77)] # - Zerinvary Lajos, Oct 29 2009 (PARI) a(n)=n^7%40 \\ Charles R Greathouse IV, Apr 06 2016 CROSSREFS Sequence in context: A070504 A070503 A070502 * A070501 A070500 A100499 Adjacent sequences:  A070718 A070719 A070720 * A070722 A070723 A070724 KEYWORD nonn,easy AUTHOR N. J. A. Sloane, May 13 2002 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified June 22 05:44 EDT 2021. Contains 345367 sequences. (Running on oeis4.)