login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A161757
a(n) = (prime(n))^2 - (nonprime(n))^2.
2
4, 8, 9, 13, 57, 88, 189, 217, 333, 616, 705, 1045, 1281, 1408, 1725, 2233, 2856, 3045, 3760, 4257, 4429, 5217, 5800, 6765, 8184, 8905, 9165, 9928, 10281, 11005, 14193, 15136, 16653, 17017, 19800, 20301, 22048, 23865, 24973, 26904, 28905, 29512, 33117
OFFSET
1,1
LINKS
FORMULA
a(n) = A000040(n)^2 - A141468(n)^2 = A001248(n) - A161753(n).
EXAMPLE
a(1)=4-0^2=4. a(2)=9-1^2=8. a(3)=25-4^2=9. a(4)=49-6^2=13. a(5)=121-8^2=57.
MATHEMATICA
A161753:= With[{nn = 2100}, Complement[Range[0, nn], Prime[Range[PrimePi[nn]]]]^2]; Table[Prime[n]^2 - A161753[[n]], {n, 1, 100}] (* G. C. Greubel, Oct 25 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Definition condensed, 78 replaced by 88, 145 replaced by 217, 433 replaced by 333 etc. by R. J. Mathar, Jun 27 2009
STATUS
approved