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!)
A070464 a(n) = n^2 mod 42. 1
0, 1, 4, 9, 16, 25, 36, 7, 22, 39, 16, 37, 18, 1, 28, 15, 4, 37, 30, 25, 22, 21, 22, 25, 30, 37, 4, 15, 28, 1, 18, 37, 16, 39, 22, 7, 36, 25, 16, 9, 4, 1, 0, 1, 4, 9, 16, 25, 36, 7, 22, 39, 16, 37, 18, 1, 28, 15, 4, 37, 30, 25, 22, 21, 22, 25, 30, 37, 4, 15, 28, 1, 18, 37, 16, 39 (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). - G. C. Greubel, Mar 25 2016
MATHEMATICA
Table[Mod[n^2, 42], {n, 0, 200}] (* Vladimir Joseph Stephan Orlovsky, Apr 27 2011 *)
PowerMod[Range[0, 80], 2, 42] (* Harvey P. Dale, Mar 13 2019 *)
PROG
(Magma) [n^2 mod 42: n in [0..80]]; // Vincenzo Librandi, Apr 27 2011
(PARI) a(n)=n^2%42 \\ Charles R Greathouse IV, Apr 06 2016
CROSSREFS
Sequence in context: A070467 A070466 A070465 * A070463 A070462 A070461
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 30 20:43 EDT 2024. Contains 372141 sequences. (Running on oeis4.)