login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A259252 Numbers n such that 1 + sigma(n) + sigma(n)^2 + sigma(n)^3 + sigma(n)^4 + sigma(n)^5 + sigma(n)^6 is prime. 3
1, 2, 5, 9, 13, 16, 24, 25, 27, 28, 30, 37, 38, 39, 46, 50, 51, 55, 57, 59, 67, 68, 71, 79, 80, 82, 88, 93, 99, 105, 108, 118, 122, 125, 127, 133, 141, 145, 148, 152, 155, 157, 161, 162, 164, 179, 189, 191, 194, 196, 215, 228, 232, 237, 242, 247, 263, 281 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Robert Price, Table of n, a(n) for n = 1..885

OEIS Wiki, Cyclotomic Polynomials at x=n, n! and sigma(n)

MAPLE

with(numtheory): A259252:=n->`if`(isprime(1 + sigma(n) + sigma(n)^2 + sigma(n)^3 + sigma(n)^4 + sigma(n)^5 + sigma(n)^6), n, NULL): seq(A259252(n), n=1..500); # Wesley Ivan Hurt, Jul 09 2015

MATHEMATICA

Select[Range[10000], PrimeQ[ 1 + DivisorSigma[1, #] + DivisorSigma[1, #]^2 + DivisorSigma[1, #]^3 + DivisorSigma[1, #]^4 + DivisorSigma[1, #]^5 + DivisorSigma[1, #]^6] &]

Select[Range[10000], PrimeQ[ Cyclotomic[7, DivisorSigma[1, #]]] &]

PROG

(PARI) isok(n) = isprime(polcyclo(7, sigma(n))); \\ Michel Marcus, Jun 23 2015

(MAGMA) [n: n in [1..500] | IsPrime(1 + DivisorSigma(1, n) + DivisorSigma(1, n)^2 + DivisorSigma(1, n)^3 + DivisorSigma(1, n)^4 + DivisorSigma(1, n)^5+ DivisorSigma(1, n)^6)]; // Vincenzo Librandi, Jun 24 2015

CROSSREFS

Cf. A000203, A259251, A259253.

Sequence in context: A104862 A190686 A247986 * A114471 A060636 A050877

Adjacent sequences:  A259249 A259250 A259251 * A259253 A259254 A259255

KEYWORD

easy,nonn

AUTHOR

Robert Price, Jun 22 2015

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 25 05:14 EDT 2021. Contains 347652 sequences. (Running on oeis4.)