This site is supported by donations to The OEIS Foundation. Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A283898 Relative of Hofstadter Q-sequence: a(-311) = 312, a(-310) = 4, a(-309) = 312, a(-308) = 4; thereafter a(n) = a(n-a(n-1)) + a(n-a(n-2)). 5
 624, 4, 312, 8, 624, 4, 312, 12, 624, 4, 312, 16, 624, 4, 312, 20, 624, 4, 312, 24, 624, 4, 312, 28, 624, 4, 312, 32, 624, 4, 312, 36, 624, 4, 312, 40, 624, 4, 312, 44, 624, 4, 312, 48, 624, 4, 312, 52, 624, 4, 312, 56, 624, 4, 312, 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<=-312. Sequences like this are more naturally considered with the first nonzero term in position 1. But this sequence would then begin with 312 terms consisting entirely of alternating 4 and 312. This sequence has exactly 6632 terms, since a(6632)=0 and computing a(6633) would refer to itself. LINKS Nathan Fox, Table of n, a(n) for n = 1..6632 MAPLE A283898:=proc(n) option remember: if n <= -312 then 0: elif n = -311 then 312: elif n = -310 then 4: elif n = -309 then 312: elif n = -308 then 4: else A283898(n-A283898(n-1)) + A283898(n-A283898(n-2)): fi: end: CROSSREFS Cf. A005185, A283899, A283900, A283901, A283902. Sequence in context: A255086 A158373 A265119 * A035479 A180453 A216843 Adjacent sequences:  A283895 A283896 A283897 * A283899 A283900 A283901 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified March 20 07:27 EDT 2019. Contains 321345 sequences. (Running on oeis4.)