This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A276584 #10 Sep 10 2016 10:25:24 %S A276584 0,3,8,6,15,11,24,21,18,35,32,27,48,43,38,63,59,56,51,80,78,74,71,66, %T A276584 99,95,91,88,83,120,117,114,110,107,102,143,138,135,131,128,123,168, %U A276584 164,161,158,154,151,146,195,192,186,183,179,176,171,224,219,213,210,206,203,198,255,251,248,242,239,235,232,227 %N A276584 The infinite trunk of greedy squares beanstalk with reversed subsections. %H A276584 Antti Karttunen, <a href="/A276584/b276584.txt">Table of n, a(n) for n = 0..9996</a> %F A276584 a(0) = 0; a(1) = 3; for n > 1, if A260740(a(n-1))+1 is not a square, then a(n) = A260740(a(n-1)), otherwise a(n) = A000290(2+A000196(A260740(a(n-1)))) - 1. %o A276584 (Scheme) %o A276584 (definec (A276584 n) (cond ((zero? n) n) ((= 1 n) 3) (else (let ((maybe_next (A260740 (A276584 (- n 1))))) (if (zero? (A010052 (+ 1 maybe_next))) maybe_next (+ -1 (A000290 (+ 2 (A000196 (+ 1 maybe_next)))))))))) %Y A276584 Cf. A000196, A000290, A010052, A053610, A260740, A276582, A276583. %K A276584 nonn %O A276584 0,2 %A A276584 _Antti Karttunen_, Sep 07 2016 and Sep 09 2016