login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A070467
a(n) = n^2 mod 45.
1
0, 1, 4, 9, 16, 25, 36, 4, 19, 36, 10, 31, 9, 34, 16, 0, 31, 19, 9, 1, 40, 36, 34, 34, 36, 40, 1, 9, 19, 31, 0, 16, 34, 9, 31, 10, 36, 19, 4, 36, 25, 16, 9, 4, 1, 0, 1, 4, 9, 16, 25, 36, 4, 19, 36, 10, 31, 9, 34, 16, 0, 31, 19, 9, 1, 40, 36, 34, 34, 36, 40, 1, 9, 19, 31, 0, 16, 34, 9
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, 0, 0, 0, 1).
FORMULA
a(n) = a(n-45). - G. C. Greubel, Mar 26 2016
MATHEMATICA
Mod[Range[0, 100]^2, 45] (* Harvey P. Dale, Feb 25 2011 *)
PROG
(Magma) [Modexp(n, 2, 45 ): n in [0..100]]; // Vincenzo Librandi, Mar 27 2016
(PARI) a(n)=n^2%45 \\ Charles R Greathouse IV, Apr 06 2016
CROSSREFS
Sequence in context: A070470 A070469 A070468 * A070466 A070465 A070464
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 12 2002
STATUS
approved