A070461 a(n) = n^2 mod 39.
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
Links
- G. C. Greubel, Table of n, a(n) for n = 0..1000
- 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).
Programs
-
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 *)
-
PARI
a(n)=n^2%39 \\ Charles R Greathouse IV, Apr 06 2016
Formula
a(n) = a(n-39). - G. C. Greubel, Mar 25 2016
Comments