OFFSET
0,1
COMMENTS
Starting from j = n, search for a smallest number k such that k - d(k) = j, and if found such a number, replace j with k and repeat the procedure. When eventually such k is no longer found, then the (last such) j must be one of the terms of A045765, and it is set as the value of a(n).
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..124340
FORMULA
EXAMPLE
PROG
CROSSREFS
Cf. also tree A263267 (and its illustration).
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 21 2015
STATUS
approved