A070460 a(n) = n^2 mod 38.
0, 1, 4, 9, 16, 25, 36, 11, 26, 5, 24, 7, 30, 17, 6, 35, 28, 23, 20, 19, 20, 23, 28, 35, 6, 17, 30, 7, 24, 5, 26, 11, 36, 25, 16, 9, 4, 1, 0, 1, 4, 9, 16, 25, 36, 11, 26, 5, 24, 7, 30, 17, 6, 35, 28, 23, 20, 19, 20, 23, 28, 35, 6, 17, 30, 7, 24, 5, 26, 11, 36, 25, 16, 9, 4, 1, 0, 1, 4
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, 1).
Programs
-
Mathematica
Table[Mod[n^2,38],{n,0,200}] (* Vladimir Joseph Stephan Orlovsky, Apr 27 2011 *) PowerMod[Range[0,80],2,38] (* Harvey P. Dale, Feb 10 2015 *)
-
PARI
a(n)=n^2%38 \\ Charles R Greathouse IV, Apr 06 2016
Formula
a(n) = a(n-38). - G. C. Greubel, Mar 25 2016