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!)
A070665 a(n) = n^6 mod 42. 0
0, 1, 22, 15, 22, 1, 36, 7, 22, 15, 22, 1, 36, 1, 28, 15, 22, 1, 36, 1, 22, 21, 22, 1, 36, 1, 22, 15, 28, 1, 36, 1, 22, 15, 22, 7, 36, 1, 22, 15, 22, 1, 0, 1, 22, 15, 22, 1, 36, 7, 22, 15, 22, 1, 36, 1, 28, 15, 22, 1, 36, 1, 22, 21, 22, 1, 36, 1, 22, 15, 28, 1, 36, 1, 22, 15, 22, 7 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).
FORMULA
a(n) = a(n-42). - Wesley Ivan Hurt, Dec 26 2023
MATHEMATICA
PowerMod[Range[0, 100], 6, 42] (* or *) PadRight[{}, 100, {0, 1, 22, 15, 22, 1, 36, 7, 22, 15, 22, 1, 36, 1, 28, 15, 22, 1, 36, 1, 22, 21, 22, 1, 36, 1, 22, 15, 28, 1, 36, 1, 22, 15, 22, 7, 36, 1, 22, 15, 22, 1}] (* Harvey P. Dale, May 01 2022 *)
PROG
(Sage) [power_mod(n, 6, 42)for n in range(0, 78)] # Zerinvary Lajos, Nov 07 2009
(PARI) a(n)=n^6%42 \\ Charles R Greathouse IV, Apr 06 2016
CROSSREFS
Sequence in context: A196027 A040464 A266015 * A161551 A291428 A195927
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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 29 09:14 EDT 2024. Contains 371268 sequences. (Running on oeis4.)