• Remix
  • Share
  • New Entry

on 5 Oct 2021
  • 7
  • 28
  • 0
  • 0
  • 227
f = zeros(80000,1);
for n=1:80000
no = 1:n;
for i=floor((n-1)/2):-1:1
z = 2*f(n-i)-f(n-2*i);
if z>0
no(z) = 0;
end
end
f(n) = min(no(no>0));
end
scatter(1:n,f,10,[1 1 1],'filled','markerfacecolor','k','markeredgealpha',0,'markerfacealpha',0.1);

Image

Remix Tree