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!)
A278061 Relative of Hofstadter Q-sequence: a(n) = n for 1 <= n <= 9; a(n) = a(n-a(n-1)) + a(n-a(n-2)) for n > 9. 18
1, 2, 3, 4, 5, 6, 7, 8, 9, 3, 10, 11, 5, 12, 6, 7, 13, 15, 10, 8, 15, 19, 12, 16, 14, 14, 10, 27, 12, 18, 15, 25, 23, 19, 18, 28, 19, 13, 22, 25, 17, 27, 21, 25, 24, 34, 17, 27, 44, 18, 30, 38, 18, 35, 27, 27, 36, 34, 26, 33, 45, 25, 28, 50 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Similar to Hofstadter's Q-sequence A005185 but with different starting values.
Much like the Hofstadter Q-sequence, it is not known if this sequence is defined for all positive n.
a(n) exists for n <= 3*10^7.
LINKS
Nathan Fox, Hofstadter-like Sequences over Nonstandard Integers, Talk given at the Rutgers Experimental Mathematics Seminar, November 10 2016.
MATHEMATICA
a[n_] := a[n] = If[0 < n < 10, n, a[n-a[n-1]] + a[n-a[n-2]]];
Array[a, 100] (* Paolo Xausa, May 29 2024 *)
PROG
(Magma) [n le 9 select n else Self(n-Self(n-1))+Self(n-Self(n-2)): n in [1..70]]; // Bruno Berselli, Nov 15 2016
CROSSREFS
Sequence in context: A028898 A081502 A236363 * A079828 A061229 A122666
KEYWORD
nonn
AUTHOR
Nathan Fox, Nov 10 2016
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 September 7 08:00 EDT 2024. Contains 375729 sequences. (Running on oeis4.)