Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #13 Dec 18 2023 13:09:43
%S 0,1,4,9,16,25,36,6,21,38,14,35,15,40,24,10,41,31,23,17,13,11,11,13,
%T 17,23,31,41,10,24,40,15,35,14,38,21,6,36,25,16,9,4,1,0,1,4,9,16,25,
%U 36,6,21,38,14,35,15,40,24,10,41,31,23,17,13,11,11,13,17,23,31,41,10,24,40
%N a(n) = n^2 mod 43.
%H G. C. Greubel, <a href="/A070465/b070465.txt">Table of n, a(n) for n = 0..1000</a>
%H <a href="/index/Rec#order_43">Index entries for linear recurrences with constant coefficients</a>, 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, 1).
%F a(n) = a(n-43). - _G. C. Greubel_, Mar 25 2016
%t PowerMod[Range[0,80],2,43] (* _Harvey P. Dale_, Nov 10 2011 *)
%o (PARI) a(n)=n^2%43 \\ _Charles R Greathouse IV_, Apr 06 2016
%K nonn,easy
%O 0,3
%A _N. J. A. Sloane_, May 12 2002