login
A070461
a(n) = n^2 mod 39.
4
0, 1, 4, 9, 16, 25, 36, 10, 25, 3, 22, 4, 27, 13, 1, 30, 22, 16, 12, 10, 10, 12, 16, 22, 30, 1, 13, 27, 4, 22, 3, 25, 10, 36, 25, 16, 9, 4, 1, 0, 1, 4, 9, 16, 25, 36, 10, 25, 3, 22, 4, 27, 13, 1, 30, 22, 16, 12, 10, 10, 12, 16, 22, 30, 1, 13, 27, 4, 22, 3, 25, 10, 36, 25, 16, 9, 4, 1, 0
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, 1).
FORMULA
a(n) = a(n-39). - G. C. Greubel, Mar 25 2016
MATHEMATICA
Table[Mod[n^2, 39], {n, 0, 200}] (* Vladimir Joseph Stephan Orlovsky, Apr 27 2011 *)
PowerMod[Range[0, 80], 2, 39] (* Harvey P. Dale, Aug 31 2014 *)
PROG
(PARI) a(n)=n^2%39 \\ Charles R Greathouse IV, Apr 06 2016
CROSSREFS
Sequence in context: A070464 A070463 A070462 * A070460 A070459 A292676
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 12 2002
STATUS
approved