0,3

Table of n, a(n) for n=0..76.

PowerMod[Range[0, 80], 5, 40] (* Harvey P. Dale, Aug 25 2014 *)

(Sage) [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

Sequence in context: A303328 A298921 A070631 * A249597 A303322 A126654

Adjacent sequences: A070620 A070621 A070622 * A070624 A070625 A070626

nonn,easy

N. J. A. Sloane, May 13 2002

approved