OFFSET
0,4
COMMENTS
a(n) = A320486(a(n-2)+a(n-1)).
This must eventually enter a cycle, since there are only finitely many pairs of numbers that both have distinct digits. In fact, at step 171, enters a cycle of length 100 (see A321022).
Another entry into this cycle would be to start with 2, 1 and use the same rule, in which case the sequence would begin (2, 1, 3, 4, 7, 0, 7, 7, 14, 21, 35, 56, 91, 147, 238, 385, 623, ..., 40, 80, 120), a cycle of length 100 that repeats (cf. A321022).
LINKS
N. J. A. Sloane, Table of n, a(n) for n = 0..1000
MAPLE
f:= proc(n) local F, S;
F:= convert(n, base, 10);
S:= select(t -> numboccur(t, F)>1, [$0..9]);
if S = {} then return n fi;
F:= subs(seq(s=NULL, s=S), F);
add(F[i]*10^(i-1), i=1..nops(F))
end proc: # A320486
x:=0: y:=1: lprint(x); lprint(y);
for n from 2 to 500 do
z:=f(x+y); lprint(z); x:=y; y:=z; od:
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Nov 19 2018
STATUS
approved