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!)
A070462 a(n) = n^2 mod 40. 3
0, 1, 4, 9, 16, 25, 36, 9, 24, 1, 20, 1, 24, 9, 36, 25, 16, 9, 4, 1, 0, 1, 4, 9, 16, 25, 36, 9, 24, 1, 20, 1, 24, 9, 36, 25, 16, 9, 4, 1, 0, 1, 4, 9, 16, 25, 36, 9, 24, 1, 20, 1, 24, 9, 36, 25, 16, 9, 4, 1, 0, 1, 4, 9, 16, 25, 36, 9, 24, 1, 20, 1, 24, 9, 36, 25, 16, 9, 4, 1, 0, 1, 4, 9, 16 (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, 1).
FORMULA
a(n) = a(n-20). - G. C. Greubel, Mar 25 2016
MATHEMATICA
Table[Mod[n^2, 40], {n, 0, 200}] (* Vladimir Joseph Stephan Orlovsky, Apr 27 2011 *)
PowerMod[Range[0, 90], 2, 40] (* Harvey P. Dale, Oct 20 2013 *)
PROG
(PARI) a(n)=n^2%40 \\ Charles R Greathouse IV, Apr 06 2016
CROSSREFS
Sequence in context: A070465 A070464 A070463 * A070461 A070460 A070459
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:18 EDT 2024. Contains 372141 sequences. (Running on oeis4.)