login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A124865 Numbers of the form p^2-q^2 with p > q prime. 6
5, 16, 21, 24, 40, 45, 48, 72, 96, 112, 117, 120, 144, 160, 165, 168, 192, 240, 264, 280, 285, 288, 312, 336, 352, 357, 360, 408, 432, 480, 504, 520, 525, 528, 552, 600, 648, 672, 720, 768, 792, 816, 832, 837, 840, 888, 912, 936, 952, 957, 960, 1008, 1032, 1080 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The only prime term is a(1) = 5. All odd terms are of the form p^2-4. All even terms are divisible by 8. Numbers of the form (p^2-q^2)/8 (p, q odd primes, p>q) are listed in A124866(n) = {2,3,5,6,9,12,14,15,18,20,21,24,30,33,35,36,39,42,44,45,51,54,60,63,65,66,69, 75,81,84,90,96,99,...}.
Elliott & Richner call these "ans numbers". - Charles R Greathouse IV, Feb 17 2014
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
N. E. Elliott and D. Richner, An investigation of the set of ans numbers, Missouri J. of Math. Sci. 15 (2003), pp. 189-199.
Florian Luca, On the densities of some subsets of integers, Missouri Journal of Mathematical Sciences 19:3 (2007), pp. 167-170.
FORMULA
a(n) >> n log n, see Luca. - Charles R Greathouse IV, Feb 17 2014
MATHEMATICA
With[{nn=60}, Take[Union[#[[2]]^2-#[[1]]^2&/@Subsets[Prime[Range[nn]], {2}]], nn]] (* Harvey P. Dale, Aug 21 2015 *)
PROG
(PARI) is(n)=if(n%24, isprimepower(n+4)==2 || isprimepower(n+9)==2, fordiv(n/4, d, if(isprime(n/d/4+d) && isprime(n/d/4-d), return(1))); 0) \\ Charles R Greathouse IV, Feb 17 2014
CROSSREFS
Apart from a(1), a subsequence of A177713.
Cf. A045636 Numbers of the form p^2+q^2, p, q primes. Cf. A124866 Numbers of the form (p^2-q^2)/8, p, q odd primes, p>q.
Sequence in context: A057281 A204920 A168469 * A090781 A191264 A077469
KEYWORD
nonn
AUTHOR
Alexander Adamchuk, Nov 10 2006
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 05:35 EDT 2024. Contains 371697 sequences. (Running on oeis4.)