login

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”).

a(n) = n^2 mod 44.
1

%I #12 Dec 18 2023 13:10:38

%S 0,1,4,9,16,25,36,5,20,37,12,33,12,37,20,5,36,25,16,9,4,1,0,1,4,9,16,

%T 25,36,5,20,37,12,33,12,37,20,5,36,25,16,9,4,1,0,1,4,9,16,25,36,5,20,

%U 37,12,33,12,37,20,5,36,25,16,9,4,1,0,1,4,9,16,25,36,5,20,37,12,33,12

%N a(n) = n^2 mod 44.

%H G. C. Greubel, <a href="/A070466/b070466.txt">Table of n, a(n) for n = 0..1000</a>

%H <a href="/index/Rec#order_22">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, 1).

%F a(n) = a(n-22). - _G. C. Greubel_, Mar 25 2016

%t PowerMod[Range[0,100],2,44] (* _Harvey P. Dale_, Jul 05 2012 *)

%o (PARI) a(n)=n^2%44 \\ _Charles R Greathouse IV_, Apr 06 2016

%K nonn,easy

%O 0,3

%A _N. J. A. Sloane_, May 12 2002