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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A070644 n^6 mod 21. 0
0, 1, 1, 15, 1, 1, 15, 7, 1, 15, 1, 1, 15, 1, 7, 15, 1, 1, 15, 1, 1, 0, 1, 1, 15, 1, 1, 15, 7, 1, 15, 1, 1, 15, 1, 7, 15, 1, 1, 15, 1, 1, 0, 1, 1, 15, 1, 1, 15, 7, 1, 15, 1, 1, 15, 1, 7, 15, 1, 1, 15, 1, 1, 0, 1, 1, 15, 1, 1, 15, 7, 1, 15, 1, 1, 15, 1, 7, 15, 1, 1, 15, 1, 1, 0, 1, 1, 15, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,4

LINKS

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

MATHEMATICA

PowerMod[Range[0, 90], 6, 21] (* or *) PadRight[{}, 90, {0, 1, 1, 15, 1, 1, 15, 7, 1, 15, 1, 1, 15, 1, 7, 15, 1, 1, 15, 1, 1}] (* Harvey P. Dale, Aug 10 2019 *)

PROG

(Sage) [power_mod(n, 6, 21)for n in xrange(0, 90)] # - Zerinvary Lajos, Nov 06 2009

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

CROSSREFS

Sequence in context: A040226 A172429 A040225 * A174389 A176286 A111805

Adjacent sequences:  A070641 A070642 A070643 * A070645 A070646 A070647

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 21 16:04 EST 2019. Contains 329371 sequences. (Running on oeis4.)