The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A198293 a(n) = (1/n)*A205406(n). 3
1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,9
COMMENTS
For a guide to related sequences, see A204892.
LINKS
MATHEMATICA
(See the program at A205402.)
s[m_]:=s[m]=Floor[(m+1)^2/2]/2
A205406[n_]:=(k=2; found=False; While[!found, Do[If[Mod[d=s[k]-s[j], n]==0, found=True; Break[]], {j, k-1}]; k++]; d)
nterms=100; Table[A205406[n]/n, {n, nterms}] (* Paolo Xausa, Dec 03 2021 *)
PROG
(PARI)
A002620(n) = ((n^2)>>2);
A002620shiftedleft(n) = A002620(1+n);
A205406(n) = { my(d); for(k=2, oo, for(j=1, k-1, if(!((d=A002620shiftedleft(k)-A002620shiftedleft(j))%n), return(d)))); };
A198293(n) = (A205406(n)/n); \\ Antti Karttunen, Dec 03 2021
CROSSREFS
Sequence in context: A224782 A160322 A341644 * A368330 A043281 A365634
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jan 27 2012
EXTENSIONS
Data section extended up to a(111) by Antti Karttunen, Dec 03 2021
STATUS
approved

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 June 5 17:44 EDT 2024. Contains 373107 sequences. (Running on oeis4.)