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 A076674 #8 May 01 2014 10:38:53 %S A076674 9,12,16,30,40,42,56,90,120,126,168,224,360,378,504,550,1320,1386, %T A076674 1848,1989,2652,2961,3948,5264,8052,9711,12948,17264,24852,31311, %U A076674 41748,53289,71052,94736,130548,145061,146280,153594,163392,170280,173290 %N A076674 Smallest a(n)>a(n-1) such that a(n)^2+a(n-1)^2 is a perfect square, a(1)=9. %C A076674 The sequence is infinite. %F A076674 a(n)=A076671(n), n>1. [From _R. J. Mathar_, Sep 20 2008] %t A076674 ps[n_]:=Module[{k=n+1,n2=n^2},While[!IntegerQ[Sqrt[n2+k^2]],k++];k]; NestList[ ps,9,40] (* _Harvey P. Dale_, May 01 2014 *) %Y A076674 Cf. A076600. %K A076674 nonn %O A076674 1,1 %A A076674 _Zak Seidov_, Oct 25 2002