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!)
A070504 a(n) = n^3 mod 42. 1
0, 1, 8, 27, 22, 41, 6, 7, 8, 15, 34, 29, 6, 13, 14, 15, 22, 41, 36, 13, 20, 21, 22, 29, 6, 1, 20, 27, 28, 29, 36, 13, 8, 27, 34, 35, 36, 1, 20, 15, 34, 41, 0, 1, 8, 27, 22, 41, 6, 7, 8, 15, 34, 29, 6, 13, 14, 15, 22, 41, 36, 13, 20, 21, 22, 29, 6, 1, 20, 27, 28, 29, 36, 13, 8, 27 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
Equivalently: n^(6*m + 3) mod 42. - G. C. Greubel, Mar 31 2016
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). - G. C. Greubel, Mar 31 2016
MATHEMATICA
PowerMod[Range[0, 80], 3, 42] (* Bruno Berselli, Mar 31 2016 *)
PROG
(Sage) [power_mod(n, 3, 42) for n in range(0, 76)] # Zerinvary Lajos, Oct 30 2009
(Magma) [Modexp(n, 3, 42): n in [0..80]]; // Bruno Berselli, Mar 31 2016
(PARI) a(n)=n^3%42 \\ Charles R Greathouse IV, Apr 06 2016
CROSSREFS
Sequence in context: A070507 A070506 A070505 * A070503 A070502 A070721
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 12 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 April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)