OFFSET
1,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
Pierre Letouzey, Shuo Li, and Wolfgang Steiner, Pointwise order of generalized Hofstadter functions G, H and beyond, arXiv:2410.00529 [cs.DM], 2024. See p. 1.
MAPLE
H:=proc(n) option remember; if n=1 then 1 else n-H(H(H(H(H(H(n-1)))))); fi; end proc;
MATHEMATICA
a[1]= 1; a[n_]:= a[n]= n - a[a[a[a[a[a[n-1]]]]]]; Table[ a[n], {n, 75}] (* Robert G. Wilson v, Dec 16 2004 *)
PROG
(SageMath)
@CachedFunction # a = A100721
def a(n): return 1 if (n==1) else n - a(a(a(a(a(a(n-1))))))
[a(n) for n in range(1, 100)] # G. C. Greubel, Nov 16 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Dec 12 2004
STATUS
approved