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!)
A283899 Relative of Hofstadter Q-sequence: a(-399) = 400, a(-398) = 4, a(-397) = 400, a(-396) = 4; thereafter a(n) = a(n-a(n-1)) + a(n-a(n-2)). 5
800, 4, 400, 8, 800, 4, 400, 12, 800, 4, 400, 16, 800, 4, 400, 20, 800, 4, 400, 24, 800, 4, 400, 28, 800, 4, 400, 32, 800, 4, 400, 36, 800, 4, 400, 40, 800, 4, 400, 44, 800, 4, 400, 48, 800, 4, 400, 52, 800, 4, 400, 56, 800, 4, 400, 60 (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<=-400.
Sequences like this are more naturally considered with the first nonzero term in position 1. But this sequence would then begin with 400 terms consisting entirely of alternating 4 and 400.
This sequence has exactly 465 terms, since a(465)=0 and computing a(466) would refer to itself.
LINKS
MAPLE
A283899:=proc(n) option remember: if n <= -400 then 0: elif n = -399 then 400: elif n = -398 then 4: elif n = -397 then 400: elif n = -396 then 4: else A283899(n-A283899(n-1)) + A283899(n-A283899(n-2)): fi: end:
CROSSREFS
Sequence in context: A121642 A364087 A035886 * A043404 A015065 A097206
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 23 13:11 EDT 2024. Contains 371913 sequences. (Running on oeis4.)