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 A262943 #12 Nov 26 2015 01:05:00 %S A262943 1,2,6,3,4,8,7,5,12,9,10,14,15,11,17,13,22,18,16,19,20,23,29,24,25,21, %T A262943 26,28,31,38,27,30,44,32,37,43,33,34,48,35,36,39,46,54,45,40,41,49,47, %U A262943 50,57,52,53,42,51,59,56,63,55,58,60,61,75,65,73,67 %N A262943 Inverse of conjectured permutation A262942. %H A262943 Robert Israel, <a href="/A262943/b262943.txt">Table of n, a(n) for n = 1..2500</a> %p A262943 N:= 1000: # to get all terms of A262942 before the first > N %p A262943 V:= Vector(N): %p A262943 W:= Vector(N): %p A262943 S:= Vector(N): %p A262943 firstav:= 1; %p A262943 for n from 1 to N do %p A262943 forbid:= {seq(op([2*V[k]-V[2*k-n], 2*V[2*k-n]-V[k], (V[k]+V[2*k-n])/2]), k=ceil((n+1)/2)..n-1)}; %p A262943 for v from firstav to N do %p A262943 if S[v] <> 0 and v = firstav then firstav:= v+1 fi; %p A262943 if S[v] = 0 and not member(v, forbid) then %p A262943 V[n]:= v; %p A262943 W[v]:= n; %p A262943 S[v]:= 1; %p A262943 break %p A262943 fi %p A262943 od; %p A262943 if v > N then break fi; %p A262943 od: %p A262943 seq(W[i],i=1..firstav-1); # _Robert Israel_, Nov 23 2015 %Y A262943 Cf. A262942, A229037. %K A262943 nonn %O A262943 1,2 %A A262943 _Max Barrentine_, Oct 05 2015 %E A262943 Corrected and extended by _Robert Israel_, Nov 23 2015