OFFSET
0,3
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, 1).
FORMULA
From Robert Israel, Apr 23 2015: (Start)
a(n+23) = a(n).
G.f.: (1 +3*x +6*x^2 +10*x^3 -8*x^4 +21*x^5 -18*x^6 +36*x^7 -24*x^8 +32*x^9 -26*x^10 +32*x^11 -24*x^12 +36*x^13 -18*x^14 +21*x^15 -8*x^16 +10*x^17 +6*x^18 +3*x^19 +x^20)*x*(1+x)/(1-x^23). (End)
MATHEMATICA
Table[Mod[n^2, 23], {n, 0, 200}] (* Vladimir Joseph Stephan Orlovsky, Apr 23 2011 *)
PROG
(Magma) [n^2 mod 23: n in [0..100]]; // Vincenzo Librandi, Apr 23 2015
(PARI) a(n)=n^2%23 \\ Charles R Greathouse IV, Apr 23 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 12 2002
STATUS
approved