login
The OEIS is supported by the many generous donors to the OEIS 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
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 *)
PadRight[{0, 1, 4, 4}, 120, {0, 1, 1, 1, 1}] (* Harvey P. Dale, Dec 22 2022 *)
CROSSREFS
Sequence in context: A260043 A366467 A366464 * A343720 A048152 A350037
KEYWORD
nonn,easy
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 03:30 EDT 2024. Contains 371906 sequences. (Running on oeis4.)