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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A070512 a(n) = n^4 mod 7. 2
0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

COMMENTS

Equivalently: n^(4*m + 4) mod 7. - G. C. Greubel, Apr 01 2016

LINKS

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

FORMULA

From G. C. Greubel, Apr 01 2016: (Start)

a(n) = a(n-7).

G.f.: x*(1 +2*x +4*x^2 +2*x^4 + x^5)/(1 - x^7).

MATHEMATICA

PowerMod[Range[0, 100], 4, 7] (* G. C. Greubel, Apr 01 2016 *)

PROG

(Sage) [power_mod(n, 4, 7)for n in range(0, 101)] # Zerinvary Lajos, Oct 30 2009

(MAGMA) [Modexp(n, 4, 7): n in [0..100]]; // Vincenzo Librandi, Apr 02 2016

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

CROSSREFS

Sequence in context: A058923 A107500 A108620 * A156346 A156283 A126123

Adjacent sequences:  A070509 A070510 A070511 * A070513 A070514 A070515

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 May 12 07:28 EDT 2021. Contains 343821 sequences. (Running on oeis4.)