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
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
KEYWORD
dead
AUTHOR
N. J. A. Sloane, May 13 2002
STATUS
approved