OFFSET
0,3
COMMENTS
A variation on Hofstadter's G-sequence.
FORMULA
Conjecture: a(n) ~ c*n, where c = 1/(1 + 1/(3 + 1/(1 + 1/(3 + ...)))) = (sqrt(21) - 3)/2 = 0.79128784747792...
MATHEMATICA
a[0] = 0; a[n_] := a[n] = n - a[Floor[a[n - 1]/3]]; Array[a, 80, 0]
PROG
(Python)
from functools import lru_cache
@lru_cache(maxsize=None)
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Oct 26 2023
STATUS
approved