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!)
A092494 a(n) = Sum_{p prime and p<=n} ceiling(n/p). 1
0, 1, 3, 4, 6, 7, 10, 11, 12, 13, 16, 17, 20, 21, 23, 25, 27, 28, 31, 32, 34, 36, 39, 40, 42, 43, 45, 46, 49, 50, 54, 55, 56, 58, 60, 62, 65, 66, 68, 70, 73, 74, 78, 79, 81, 83, 86, 87, 89, 90, 92, 94, 97, 98, 100, 102, 104, 106, 109, 110, 114, 115, 117, 119, 120, 122 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,3

COMMENTS

a(n) = A013939(n) + A048865(n).

LINKS

Robert Israel, Table of n, a(n) for n = 1..10000

MAPLE

N:= 100: # for a(1)..a(N)

V:= Vector(N):

p:= 0:

do

  p:= nextprime(p);

  if p > N then break fi;

  V[p]:= V[p]+1;

  for k from 2 to floor(N/p) do

    V[(k-1)*p+1 .. k*p]:= V[(k-1)*p+1 .. k*p] +~ k;

  od;

  if (k-1)*p+1<=N then V[(k-1)*p+1..N]:= V[(k-1)*p+1..N]+~ k fi

od:

convert(V, list); # Robert Israel, Jun 19 2019

PROG

(PARI) a(n) = sum(k=1, n, isprime(k)*ceil(n/k)); \\ Michel Marcus, Jun 19 2019

CROSSREFS

Cf. A006590.

Sequence in context: A285379 A102093 A135215 * A274429 A050618 A093579

Adjacent sequences:  A092491 A092492 A092493 * A092495 A092496 A092497

KEYWORD

nonn

AUTHOR

Reinhard Zumkeller, Apr 05 2004

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 July 11 23:40 EDT 2020. Contains 335652 sequences. (Running on oeis4.)