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!)
A185057 a(n) = n^n! (mod 5). 0
0, 1, 4, 4, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

COMMENTS

For n > 3, periodic with period 5: repeat [1, 0, 1, 1, 1].

LINKS

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

Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 1).

FORMULA

a(n) = (2/5)*(2 - cos(2*n*Pi/5) - cos(4*n*Pi/5)) for n > 3. - Wesley Ivan Hurt, Sep 27 2018

MATHEMATICA

Table[PowerMod[n, n!, 5], {n, 0, 84}]

Join[{0, 1, 4, 4}, LinearRecurrence[{0, 0, 0, 0, 1}, {1, 0, 1, 1, 1}, 81]] (* Ray Chandler, Aug 25 2015 *)

CROSSREFS

Sequence in context: A204384 A102412 A260043 * A048152 A070430 A336302

Adjacent sequences:  A185054 A185055 A185056 * A185058 A185059 A185060

KEYWORD

nonn,easy

AUTHOR

José María Grau Ribas, Jan 21 2012

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 April 13 21:24 EDT 2021. Contains 342941 sequences. (Running on oeis4.)