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!)
A185008 Next semiprime after 10*n. 2
4, 14, 21, 33, 46, 51, 62, 74, 82, 91, 106, 111, 121, 133, 141, 155, 161, 177, 183, 194, 201, 213, 221, 235, 247, 253, 262, 274, 287, 291, 301, 314, 321, 334, 341, 355, 361, 371, 381, 391, 403, 411, 422, 437, 445, 451, 466, 471, 481, 493, 501, 511, 526, 533 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

COMMENTS

This is to semiprimes A001358 as A218255 is to primes A000040.

LINKS

Table of n, a(n) for n=0..53.

FORMULA

a(n) = MIN[k in A218255 and k > 10*n].

EXAMPLE

a(0) = 4 because 4=2^2 is the least semiprime > 10*0=0.

a(1) = 14 because 14=2*7 is the least semiprime > 10*1=10.

MATHEMATICA

SemiprimeQ[n_Integer] := If[Abs[n] < 2, False, (2 == Plus @@ Transpose[FactorInteger[Abs[n]]][[2]])]; NextSemiprime[n_] := Module[{m = n + 1}, While[! SemiPrimeQ[m], m++]; m]; Table[NextSemiprime[10*n], {n, 0, 100}] (* T. D. Noe, Nov 02 2012 *)

PROG

(Python)

from sympy.ntheory.factor_ import primeomega

def nextsemiprime(n):

  while primeomega(n + 1) != 2: n += 1

  return n + 1

def a(n): return nextsemiprime(10*n)

print([a(n) for n in range(54)]) # Michael S. Branicky, Apr 14 2021

CROSSREFS

Cf. A001358, A218255.

Sequence in context: A326004 A297358 A267768 * A165721 A197638 A051806

Adjacent sequences:  A185005 A185006 A185007 * A185009 A185010 A185011

KEYWORD

nonn,easy

AUTHOR

Jonathan Vos Post, Nov 01 2012

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 June 21 06:55 EDT 2021. Contains 345358 sequences. (Running on oeis4.)