cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A070444 a(n) = n^2 mod 22.

This page as a plain text file.
%I A070444 #32 Jan 09 2025 09:34:11
%S A070444 0,1,4,9,16,3,14,5,20,15,12,11,12,15,20,5,14,3,16,9,4,1,0,1,4,9,16,3,
%T A070444 14,5,20,15,12,11,12,15,20,5,14,3,16,9,4,1,0,1,4,9,16,3,14,5,20,15,12,
%U A070444 11,12,15,20,5,14,3,16,9,4,1,0,1,4,9,16,3,14,5,20,15,12,11,12,15,20,5
%N A070444 a(n) = n^2 mod 22.
%H A070444 Vincenzo Librandi, <a href="/A070444/b070444.txt">Table of n, a(n) for n = 0..3000</a>
%H A070444 <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 A070444 From _R. J. Mathar_, Jul 27 2015: (Start)
%F A070444 a(n) = a(n-22).
%F A070444 G.f.: -x*(1 +4*x +9*x^2 +16*x^3 +3*x^4 +14*x^5 +5*x^6 +20*x^7 +15*x^8 +12*x^9 +11*x^10 +12*x^11 +15*x^12 +20*x^13 +5*x^14 +14*x^15 +3*x^16 +16*x^17 +9*x^18 +4*x^19+x^20) / ( (x-1) *(1+x^10+x^9+x^8+x^7+x^6+x^5+x^4+x^3+x^2+x) *(1+x) *(1-x+x^2-x^3+x^4-x^5+x^6-x^7+x^8-x^9+x^10) ). (End)
%t A070444 Table[Mod[n^2,22],{n,0,200}] (* _Vladimir Joseph Stephan Orlovsky_, Apr 23 2011 *)
%t A070444 PowerMod[Range[0,120],2,22] (* or *) PadRight[{},120,{0,1,4,9,16,3,14,5,20,15,12,11,12,15,20,5,14,3,16,9,4,1}] (* _Harvey P. Dale_, May 28 2021 *)
%o A070444 (Maxima) makelist(power_mod (n, 2, 22), n, 0, 81); /* _Bruno Berselli_, May 25 2011 */
%o A070444 (Magma) [n^2 mod (22): n in [0..80]]; // _Vincenzo Librandi_, May 26 2011
%o A070444 (PARI) a(n)=n^2%22 \\ _Charles R Greathouse IV_, Apr 06 2016
%K A070444 nonn,easy
%O A070444 0,3
%A A070444 _N. J. A. Sloane_, May 12 2002