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!)
A125237 Numbers n for which the absolute value of the abundance of both n and n^2 is a prime number. 3
3, 9, 10, 18, 50, 100, 104, 121, 136, 289, 464, 576, 650, 900, 5041, 6962, 7225, 10201, 14400, 55225, 65025, 87025, 102152, 147456, 171698, 174050, 179776, 182329, 189225, 201601, 222784, 291848, 312481, 380689, 410881, 469225, 481636, 488601 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
n=3: The abundance of 3 is -2, the negative of a prime. n^2=9, the abundance of 9 is -5, the negative of a prime as well.
MATHEMATICA
pQ[n_] := PrimeQ[DivisorSigma[1, n] - 2n]; Select[Range[10^4], pQ[#] && pQ[#^2] &] (* Amiram Eldar, Sep 24 2019 *)
PROG
(PARI) {for(n=1, 500000, if(isprime(abs(sigma(n)-2*n)) && isprime(abs(sigma(n^2)-2*n^2)), print1(n, ", ")))} \\ Klaus Brockhaus, Nov 25 2006
CROSSREFS
Sequence in context: A134073 A088005 A340459 * A085459 A092169 A093108
KEYWORD
nonn
AUTHOR
Jason G. Wurtzel, Nov 25 2006
EXTENSIONS
More terms from Klaus Brockhaus, Nov 25 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 20 03:03 EDT 2024. Contains 371798 sequences. (Running on oeis4.)