OFFSET
1,2
LINKS
Joseph Bove, Table of n, a(n) for n = 1..20000
EXAMPLE
For n=12, a(12)=12+6 as a(6) is the first term to equal 11.
PROG
(MATLAB)
function a = A357897( max_n )
a = 1;
for n = 2:max_n
f = find(a == n-1, 1);
a(n) = n + max([f 0]);
end
end % Thomas Scheuerle, Oct 19 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Joseph Bove, Oct 19 2022
STATUS
approved