OFFSET
0,3
COMMENTS
The plots of a(n) and a(n) - a(n-1) are interesting. Empirically 2*n/3 <= a(n) <= (n-1) and 2/3 <= a(n)/a(n-1) <= 3/2.
EXAMPLE
a(0) = 1;
a(1) = 1;
a(2) = Min(1, 1) + GCD(1, 1) = 2;
a(3) = Min(2, 1) + GCD(2, 2) = 3;
a(4) = Min(3, 2) + GCD(3, 3) = 5;
and so on.
MATHEMATICA
a[0] = a[1] = 1; a[n_] := a[n] = Min[a[n - 1], a[n - 2]] + GCD[a[n - 1], n - 1]; Array[a, 100, 0] (* Amiram Eldar, Mar 15 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Ctibor O. Zizka, Mar 15 2024
STATUS
approved