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!)
A283896 Relative of Hofstadter Q-sequence: a(-88) = 89, a(-87) = 2; thereafter a(n) = a(n-a(n-1)) + a(n-a(n-2)). 5
91, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180, 2, 180 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
In calculating terms of this sequence, use the convention that a(n)=0 for n<=-89.
Sequences like this are more naturally considered with the first nonzero term in position 1. But this sequence would then begin with 89 terms consisting entirely of alternating 2 and 89.
This sequence has exactly 2467 terms, since a(2467)=0 and computing a(2468) would refer to itself.
LINKS
MAPLE
A283896:=proc(n) option remember: if n <= -89 then 0: elif n = -88 then 89: elif n = -87 then 2: else A283896(n-A283896(n-1)) + A283896(n-A283896(n-2)): fi: end:
CROSSREFS
Sequence in context: A306304 A175690 A368433 * A284439 A364664 A119656
KEYWORD
nonn,fini,full
AUTHOR
Nathan Fox, Mar 19 2017
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 April 25 07:07 EDT 2024. Contains 371964 sequences. (Running on oeis4.)