|
|
A278059
|
|
Relative of Hofstadter Q-sequence: a(n) = n for 1 <= n <= 7; a(n) = a(n-a(n-1)) + a(n-a(n-2)) for n > 7.
|
|
18
|
|
|
1, 2, 3, 4, 5, 6, 7, 3, 8, 9, 5, 10, 6, 7, 11, 13, 10, 8, 13, 17, 7, 16, 20, 7, 13, 19, 10, 16, 19, 12, 23, 25, 12, 24, 25, 15, 26, 30, 14, 28, 16, 26, 20, 15, 25, 30, 26, 24, 33, 29, 24, 36, 29, 21, 43, 31, 26, 35, 19, 29, 51, 17, 40, 33, 38, 28
(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 < 8, n, a[n-a[n-1]] + a[n-a[n-2]]];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|