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.

A353004 Numbers k such that 2*k^2 + 29 is semiprime.

Original entry on oeis.org

29, 30, 32, 35, 39, 44, 50, 57, 58, 61, 63, 65, 72, 74, 76, 84, 87, 88, 89, 91, 92, 94, 95, 97, 99, 102, 107, 109, 113, 116, 118, 120, 122, 123, 125, 126, 127, 134, 138, 144, 145, 146, 147, 148, 149, 150, 153, 154, 156, 157, 163, 164, 165, 166, 169, 174, 175, 179, 180, 182, 183, 191, 194, 196, 200
Offset: 1

Views

Author

Rémi Guillaume, Apr 15 2022

Keywords

Comments

The least positive k for which 2*k^2 + 29 is neither prime nor semiprime is k = 185, which gives 2*k^2 + 29 = 68479 = 31*47^2.
Includes 29*k if 58*k^2 + 1 is prime; Bunyakovsky's conjecture implies there are infinitely many of these. - Robert Israel, Jul 29 2025

Examples

			a(5) = 39; 2*39^2 + 29 = 3071 = 37*83 is semiprime.
		

Crossrefs

Subsequence of A007642, whose first term not in this sequence is 185.

Programs

  • Maple
    filter:= proc(k) numtheory:-bigomega(2*k^2+29) = 2 end proc;
    select(filter, [$1..1000]); # Robert Israel, Jul 29 2025
  • Mathematica
    Select[Range[200], PrimeOmega[2*#^2 + 29] == 2 &] (* Amiram Eldar, Apr 15 2022 *)
  • PARI
    isok(k) = bigomega(2*k^2+29) == 2; \\ Michel Marcus, Apr 15 2022
  • Python
    from sympy import primeomega
    def semiprime(n): return primeomega(n) == 2
    print([k for k in range(140) if semiprime(2*k**2+29)]) # Michael S. Branicky, Apr 15 2022
    

A241554 Semiprimes generated by the polynomial 2 * n^2 + 29.

Original entry on oeis.org

1711, 1829, 2077, 2479, 3071, 3901, 5029, 6527, 6757, 7471, 7967, 8479, 10397, 10981, 11581, 14141, 15167, 15517, 15871, 16591, 16957, 17701, 18079, 18847, 19631, 20837, 22927, 23791, 25567, 26941, 27877, 28829, 29797, 30287, 31279, 31781, 32287, 35941, 38117
Offset: 1

Views

Author

K. D. Bajpai, Apr 25 2014

Keywords

Comments

2 * n^2 + 29 is a well-known Legendre prime-producing polynomial which generates 29 distinct primes for n = 0, 1, ..., 28. For n = 29, it yields the first semiprime, 1711 = 29 * 59.
The number n = 185 is the least positive integer for which 2*n^2 + 29 = 68479 = 31 * 47 * 47 is not squarefree.

Examples

			2 * 30^2 + 29 = 1829 = 31 * 59, which is a semiprime and is a term.
2 * 35^2 + 29 = 2479 = 37 * 67, which is a semiprime and is a term.
		

Crossrefs

Programs

  • Maple
    with(numtheory):A241554:= proc() local k; k:=2*x^2+29;if bigomega(k)=2 then RETURN (k); fi; end: seq(A241554(), x=0..500);
  • Mathematica
    A241554 = {}; Do[k = 2 * n^2 + 29; If[PrimeOmega[k] == 2, AppendTo[A241554, k]], {n,200}]; A241554
  • PARI
    s=[]; for(n=1, 200, t=2*n^2+29; if(bigomega(t)==2, s=concat(s, t))); s \\ Colin Barker, Apr 26 2014
Showing 1-2 of 2 results.