login
A366870
a(0) = 0; a(n) = n - a(floor(a(n-1)/4)).
3
0, 1, 2, 3, 4, 4, 5, 6, 7, 8, 8, 9, 10, 11, 12, 12, 13, 14, 15, 16, 16, 17, 18, 19, 20, 21, 22, 23, 24, 24, 25, 26, 27, 28, 28, 29, 30, 31, 32, 32, 33, 34, 35, 36, 36, 37, 38, 39, 40, 41, 42, 43, 44, 44, 45, 46, 47, 48, 48, 49, 50, 51, 52, 52, 53, 54, 55, 56, 56, 57, 58, 59, 60, 61, 62, 63, 64, 64, 65, 66
OFFSET
0,3
COMMENTS
A variation on Hofstadter's G-sequence.
FORMULA
Conjecture: a(n) ~ c*n, where c = 1/(1 + 1/(4 + 1/(1 + 1/(4 + ...)))) = 2*(sqrt(2) - 1) = 0.82842712474619...
MATHEMATICA
a[0] = 0; a[n_] := a[n] = n - a[Floor[a[n - 1]/4]]; Array[a, 80, 0]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Oct 26 2023
STATUS
approved