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 A185046 #24 Apr 18 2013 14:28:00 %S A185046 5,3,5,7,13,3,13,3,5,3,3,11,0,7,5,19,37,11,5,7,5,7,37,11,5,31,53,31, %T A185046 13,23,5,7,5,7,13,23,13,19,5,7,421,47,5,7,5,11,13,11,5,43,5,11,61,23, %U A185046 5,19,5,7,5,5,53,7,17,7,13,11,13,7,113,7,373,11,17,7 %N A185046 Smallest prime p such that 2n+1 = p^3 - 2q for some odd prime q, or 0 if no such prime exists. %C A185046 a(n) = 0 for n = 13, 171, 364, 1098, 2456, 3429, 6083, 7812, 9841, 12194, 14895, 17968,... and 2n+1 = 27, 343, 729,... is a class of cubes. %C A185046 The corresponding primes q are in A224730. %C A185046 Conjecture: The odd numbers different from a cube are of the form m = p^3 - 2q where p and q are prime numbers. %C A185046 Remark: Its converse is false: there exists cubes m = c^3 that are in the sequence with the form c^3 = p^3 - 2q, where p-c = 2, and q of the form x^2 +x*y+y^2 (see A007645). For example: 5^3 = 7^3 - 2*109. %H A185046 Michel Lagneau, <a href="/A185046/b185046.txt">Table of n, a(n) for n = 1..10000</a> %e A185046 a(4) = 7 because, for (p, q) = (7, 167) => 2*4+1 = 9 = 7^3 - 2*167 = 343 - 334 = 9. %p A185046 for n from 3 by 2 to 200 do: %p A185046 jj:=0: %p A185046 for j from 1 to 10000 while (jj=0) do: %p A185046 p:=ithprime(j):q:=(p^3-n)/2: %p A185046 if q> 0 and type(q,prime)=true %p A185046 then %p A185046 jj:=1:printf(`%d, `,p): %p A185046 else %p A185046 fi: %p A185046 od: %p A185046 if jj=0 then %p A185046 printf(`%d, `,0): %p A185046 else %p A185046 fi: %p A185046 od: %Y A185046 Cf. A007645, A224730. %K A185046 nonn %O A185046 1,1 %A A185046 _Michel Lagneau_, Apr 17 2013