OFFSET
1,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..8121
FORMULA
Other identities. For all n >= 1:
A283480(a(n)) = n.
MATHEMATICA
a[n_] := a[n] = If[n <= 2, 1, a[a[n - 1]] + a[n - a[n - 1]]]; Select[Range@ 169, OddQ@ a[#] &] (* Michael De Vlieger, Mar 18 2017, after Robert G. Wilson v at A004001 *)
PROG
(Scheme, with Antti Karttunen's IntSeq-library)
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 18 2017
STATUS
approved