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 A280270 #21 Jan 02 2017 20:03:58 %S A280270 6,8,12,18,20,24,28,30,32,36,40,42,44,48,50,52,54,56,60,64,66,70,72, %T A280270 80,84,88,90,96,108,112,116,120,126,132,140,144,148,150,156,160,162, %U A280270 168,174,176,180,186,188,192,196,198,200,204,210,216,220,224,230,232,234,240 %N A280270 Numbers n such that A278981(n) < 2*n^2. %C A280270 All members of this sequence are even, as for any odd number m A278981(m) > m^3 + m^2 + m + 1 > 2*m^2. %C A280270 It appears that, apart from 2, all members of A280236 appear in this sequence. %H A280270 Ely Golden, <a href="/A280270/b280270.txt">Table of n, a(n) for n = 1..1889</a> %H A280270 Ely Golden, <a href="/A280270/a280270_1.txt">Table of n, a(n), A278981(a(n)) for n = 1..1889 (a-file)</a> %o A280270 (SageMath) %o A280270 def nonZeroDigits(x, n): %o A280270 if(x<=0|n<2): %o A280270 return [] %o A280270 li=[] %o A280270 while(x>0): %o A280270 d=divmod(x, n) %o A280270 if(d[1]!=0): %o A280270 li.append(d[1]) %o A280270 x=d[0] %o A280270 li.sort() %o A280270 return li; %o A280270 def nonZeroFactorDigits(x, n): %o A280270 if(x<=0|n<2): %o A280270 return [] %o A280270 li=[] %o A280270 f=list(factor(x)) %o A280270 #ensures inequality of nonZeroFactorDigits(x, n) and nonZeroDigits(x, n) if x is prime %o A280270 if((len(f)==1)&(f[0][1]==1)): %o A280270 return []; %o A280270 for c in range(len(f)): %o A280270 for d in range(f[c][1]): %o A280270 ld=nonZeroDigits(f[c][0], n) %o A280270 li+=ld %o A280270 li.sort() %o A280270 return li; %o A280270 #the actual function %o A280270 def a(n): %o A280270 c=n**2+n+1 %o A280270 limit=2*(n**2) %o A280270 if(n%2!=0): %o A280270 return -1 %o A280270 while((nonZeroFactorDigits(c, n)!=nonZeroDigits(c, n))&(c<limit)): %o A280270 c+=1; %o A280270 if(c>=limit): %o A280270 return -1 %o A280270 return c; %o A280270 index=1 %o A280270 value=2 %o A280270 while(index<=1000): %o A280270 result=a(value) %o A280270 if(result!=-1): %o A280270 print(str(index)+" "+str(value)+" "+str(result)) %o A280270 index+=1 %o A280270 value+=1 %o A280270 print("complete") %Y A280270 Cf. A278981, A280236. %K A280270 nonn,base %O A280270 1,1 %A A280270 _Ely Golden_, Dec 30 2016