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!)
A335690 a(1) = 1, a(2) = a(3) = 2; a(n) = (a(n-1) + a(n-2) + 1)/a(n-3) (for n>3). 0
1, 2, 2, 5, 4, 5, 2, 2, 1, 2, 2, 5, 4, 5, 2, 2, 1, 2, 2, 5, 4, 5, 2, 2, 1, 2, 2, 5, 4, 5, 2, 2, 1, 2, 2, 5, 4, 5, 2, 2, 1, 2, 2, 5, 4, 5, 2, 2, 1, 2, 2, 5, 4, 5, 2, 2, 1, 2, 2, 5, 4, 5, 2, 2, 1, 2, 2, 5, 4, 5, 2, 2, 1, 2, 2, 5, 4, 5, 2, 2, 1, 2, 2, 5, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
This is another illustration of the 8-cycle discovered by H. Todd - see Lyness, Note 1847. Compare A076844. - N. J. A. Sloane, Jul 19 2020
LINKS
R. C. Lyness, Note 1581. Cycles, Math. Gazette, 26 (1942), 62.
R. C. Lyness, Note 1847. Cycles, Math. Gaz., 29 (1945), 231-233.
R. C. Lyness, Note 2952. Cycles, Math. Gaz., 45 (1961), 207-209.
MAPLE
a := 1; b := 1; c := 1; f := proc(n) option remember; global a, b, c; if n=1 then RETURN(a); fi; if n=2 then RETURN(b); fi; if n=3 then RETURN(c); fi; RETURN((f(n-1)+f(n-2)+1)/f(n-3)); end;
MATHEMATICA
RecurrenceTable[{a[1]==1, a[2]==a[3]==2, a[n]==(a[n-1]+a[n-2]+1)/a[n-3]}, a, {n, 90}] (* or *) PadRight[{}, 90, {1, 2, 2, 5, 4, 5, 2, 2}] (* Harvey P. Dale, May 28 2021 *)
CROSSREFS
Sequence in context: A128971 A292245 A206427 * A330026 A112923 A337662
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jul 19 2020
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 6 03:51 EDT 2024. Contains 373110 sequences. (Running on oeis4.)