cp's OEIS Frontend

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.

Showing 1-2 of 2 results.

A268043 Numbers k such that k^3 - 1 and k^3 + 1 are both semiprimes.

Original entry on oeis.org

6, 1092, 1932, 2730, 4158, 6552, 11172, 25998, 30492, 55440, 76650, 79632, 85092, 102102, 150990, 152082, 152418, 166782, 211218, 235662, 236208, 248640, 264600, 298410, 300300, 301182, 317772, 380310, 387198, 441798, 476028, 488418
Offset: 1

Views

Author

Vincenzo Librandi, Jan 25 2016

Keywords

Comments

Obviously, k+1 and k-1 are always prime numbers.
If k is a term then m = (k - 1) * (k^2 + k + 1) is a term of A169635, i.e., A001157(m) = A001157(m+2) (De Koninck, 2002). - Amiram Eldar, Apr 19 2024

Examples

			a(1) = 6 because 6^3-1 = 215 = 5*43 and 6^3+1 = 217 = 7*31, therefore 215, 217 are both semiprimes.
		

Crossrefs

Programs

  • Magma
    IsSemiprime:=func< n | &+[k[2]: k in Factorization(n)] eq 2 >; [ n: n in [2..300000] | IsSemiprime(n^3+1) and IsSemiprime(n^3-1) ];
    
  • Mathematica
    Select[Range[500000], PrimeOmega[#^3 - 1] == PrimeOmega[#^3 + 1] == 2 &]
    Select[Range[10^6], And @@ PrimeQ[{# - 1, # + 1, #^2 - # + 1, #^2 + # + 1}] &] (* Amiram Eldar, Apr 19 2024 *)
  • PARI
    isok(n) = (bigomega(n^3-1) == 2) && (bigomega(n^3+1) == 2); \\ Michel Marcus, Jan 26 2016
    
  • PARI
    is(n) = isprime(n - 1) && isprime(n + 1) && isprime(n^2 - n + 1) && isprime(n^2 + n + 1); \\ Amiram Eldar, Apr 19 2024

A136243 Numbers k in A008864 such that k^2 - k - 1 is prime.

Original entry on oeis.org

3, 4, 6, 12, 14, 20, 32, 42, 54, 60, 84, 90, 102, 104, 132, 150, 164, 182, 192, 194, 200, 234, 242, 264, 282, 332, 350, 374, 402, 420, 432, 434, 450, 462, 464, 500, 542, 570, 572, 660, 674, 684, 692, 710, 740, 744, 762, 770, 810, 864, 882, 942, 1014, 1040
Offset: 1

Views

Author

Lekraj Beedassy, Dec 24 2007

Keywords

Comments

See A053185 for the primes associated with a(n).

Crossrefs

Programs

  • PARI
    isok(k) = isprime(k-1) && isprime(k^2-k-1); \\ Michel Marcus, Dec 19 2022

Formula

a(n) = A053184(n) + 1.

Extensions

a(20)=194 inserted by Georg Fischer, Dec 18 2022
Showing 1-2 of 2 results.