|
|
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
|
|
|
MATHEMATICA
|
a[n_] := a[n] = If[0 < n < 10, n, a[n-a[n-1]] + a[n-a[n-2]]];
|
|
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
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|