login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A070702 a(n) = n^7 mod 20. 1
0, 1, 8, 7, 4, 5, 16, 3, 12, 9, 0, 11, 8, 17, 4, 15, 16, 13, 12, 19, 0, 1, 8, 7, 4, 5, 16, 3, 12, 9, 0, 11, 8, 17, 4, 15, 16, 13, 12, 19, 0, 1, 8, 7, 4, 5, 16, 3, 12, 9, 0, 11, 8, 17, 4, 15, 16, 13, 12, 19, 0, 1, 8, 7, 4, 5, 16, 3, 12, 9, 0, 11, 8, 17, 4, 15, 16, 13, 12, 19, 0, 1, 8, 7, 4, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

COMMENTS

Same as A070482. - Ilya Gutkovskiy, Jun 17 2016

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 0..1000

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,1).

FORMULA

a(n) = A070482(n), see also the second Sage code. - Ilya Gutkovskiy, Jun 17 2016

MATHEMATICA

PowerMod[Range[0, 90], 7, 20] (* Harvey P. Dale, Apr 20 2012 *)

PROG

(Sage) [power_mod(n, 7, 20) for n in xrange(85)] # Zerinvary Lajos, Oct 28 2009

(Sage) [power_mod(n, 3, 20) for n in xrange(85)] # Zerinvary Lajos, Oct 28 2009

(PARI) a(n)=n^7%20 \\ Charles R Greathouse IV, Apr 06 2016

(MAGMA) [Modexp(n, 7, 20): n in [0..80]]; // Vincenzo Librandi, Jun 17 2016

CROSSREFS

Sequence in context: A111448 A169885 A070482 * A019870 A019903 A327340

Adjacent sequences:  A070699 A070700 A070701 * A070703 A070704 A070705

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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 19 16:35 EST 2019. Contains 329320 sequences. (Running on oeis4.)