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!)
A109824 a(n) is the number of consecutive integers starting with n summing up to a semiprime. 2
3, 3, 5, 1, 4, 1, 2, 4, 1, 1, 5, 2, 4, 1, 1, 2, 2, 3, 2, 4, 1, 1, 13, 2, 1, 1, 2, 2, 4, 3, 6, 2, 1, 1, 1, 3, 6, 1, 1, 3, 5, 2, 2, 7, 2, 1, 2, 6, 1, 4, 1, 3, 4, 6, 1, 7, 1, 1, 2, 2, 2, 1, 6, 2, 1, 2, 4, 4, 1, 2, 2, 2, 4, 1, 14, 6, 1, 3, 2, 2, 5, 1, 13, 2, 1, 1, 1, 2, 4, 14, 1, 2, 1, 1, 1, 3, 4, 4, 5, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Harvey P. Dale, Table of n, a(n) for n = 1..10000

FORMULA

A109824(n) = A109823(n) - n + 1.

MATHEMATICA

Table[Position[Accumulate[Range[n, n+300]], _?(PrimeOmega[#]==2&), 1, 1], {n, 100}]//Flatten (* The parameter 300 is sufficient for n up to 100000 but might have to be increased for larger n. *) (* Harvey P. Dale, Feb 14 2018 *)

PROG

(PARI) { a(n) = my(s, m); s=n; m=n; while(bigomega(s)!=2, m++; s+=m); m-n+1 }

CROSSREFS

Cf. A109411, A109823.

Sequence in context: A021753 A062563 A091931 * A011399 A205853 A240594

Adjacent sequences:  A109821 A109822 A109823 * A109825 A109826 A109827

KEYWORD

nonn

AUTHOR

Zak Seidov & Max Alekseyev, Jul 03 2005

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 23 11:29 EDT 2021. Contains 345397 sequences. (Running on oeis4.)