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 A104663 #10 May 11 2015 15:48:03 %S A104663 1,2,3,6,4,11,8,5,26,9,12,7,15,17,33,43,10,25,16,19,13,32,39,21,61, %T A104663 175,22,20,57,37,95,14,18,50,27,40,34,110,29,24,171,23,64,28,46,203, %U A104663 45,31,137,91,134,35,58,30,90,54,69,106,38,73,360,296,67,88,48,70,526,109,124 %N A104663 Position of n in A105822. %C A104663 Is A105822 a permutation of the positive integers? %H A104663 Ivan Neretin, <a href="/A104663/b104663.txt">Table of n, a(n) for n = 1..1000</a> %p A104663 N:= 1000: # to go up to the first entry missing in A105822(1 .. N) %p A104663 A:= 'A': %p A104663 a[1]:= 1: a[2]:= 2: %p A104663 A[1]:= 1: A[2]:= 2: %p A104663 for n from 3 to N do %p A104663 ds:= map(t -> rhs(op(t)), [msolve(x^2=a[n-1]^2, 4*a[n-2])]); %p A104663 xmin:= infinity; %p A104663 for d in ds do %p A104663 found:= false; %p A104663 for y from floor((a[n-1]-d)/(4*a[n-2]))+1 do %p A104663 xy:= 4*a[n-2]*y + d; %p A104663 cand:= (xy^2 - a[n-1]^2)/(4*a[n-2]); %p A104663 if cand >= xmin then found:= false; break fi; %p A104663 if not assigned(A[cand]) then found:= true; break fi; %p A104663 od: %p A104663 if found then xmin:= cand; fi; %p A104663 od: %p A104663 a[n]:= xmin; %p A104663 A[xmin]:= n; %p A104663 od: %p A104663 M:= min(select(t -> not assigned(A[t]), [$1..N+1])): %p A104663 seq(A[i],i=1..M-1); # _Robert Israel_, May 11 2015 %Y A104663 Cf. A105822. %K A104663 nonn %O A104663 1,2 %A A104663 _Zak Seidov_, Apr 22 2005 %E A104663 Definition corrected by _N. J. A. Sloane_, Aug 29 2008