login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A070450 a(n) = n^2 mod 28. 6

%I #16 Dec 18 2023 12:37:08

%S 0,1,4,9,16,25,8,21,8,25,16,9,4,1,0,1,4,9,16,25,8,21,8,25,16,9,4,1,0,

%T 1,4,9,16,25,8,21,8,25,16,9,4,1,0,1,4,9,16,25,8,21,8,25,16,9,4,1,0,1,

%U 4,9,16,25,8,21,8,25,16,9,4,1,0,1,4,9,16,25,8,21,8,25,16,9,4,1,0,1,4,9,16

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

%C Periodic, with period = 14. - _Harvey P. Dale_, Jul 20 2021

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

%H <a href="/index/Rec#order_14">Index entries for linear recurrences with constant coefficients</a>, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).

%F a(n) = a(n-28). - _G. C. Greubel_, Mar 24 2016

%t Table[Mod[n^2,28],{n,0,200}] (* _Vladimir Joseph Stephan Orlovsky_, Apr 27 2011 *)

%t PowerMod[Range[0,100],2,28] (* or *) PadRight[{},100,{0,1,4,9,16,25,8,21,8,25,16,9,4,1}] (* _Harvey P. Dale_, Jul 20 2021 *)

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

%Y Cf. A070448, A070449.

%K nonn,easy

%O 0,3

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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 03:22 EDT 2024. Contains 371696 sequences. (Running on oeis4.)