|
|
A373230
|
|
Relative of Hofstadter Q-sequence: a(n) = 0 for n <= 0, a(n) = n for 1 <= n <= 10; a(n) = a(n-a(n-1)) + a(n-a(n-2)) + a(n-a(n-3)) for n > 10.
|
|
7
|
|
|
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 6, 11, 12, 13, 9, 14, 15, 16, 12, 17, 18, 19, 15, 20, 21, 17, 23, 18, 23, 25, 26, 22, 21, 31, 29, 21, 28, 34, 27, 29, 31, 27, 38, 33, 34, 31, 39, 37, 37, 30, 44, 36, 39, 35, 43, 45, 43, 30, 50, 50, 38, 42, 51, 48, 43, 40, 55, 51, 52, 37, 60, 57, 47
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
Similar to A278055 but with different starting values.
a(1015) = 1036. This is the smallest index for which a(n) > n. So, without the condition that a(n) = 0 for n <= 0, this sequence would be finite and have exactly 1015 terms.
Much like the Hofstadter Q-sequence A005185, 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] = Which[n < 1, 0, n < 11, n, True, a[n-a[n-1]] + a[n-a[n-2]] + a[n-a[n-3]]]; Array[a, 100] (* Paolo Xausa, May 31 2024 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|