Re: no prime number in the given range



"Tim Peters" <tim.one@xxxxxxxxxxx> writes:
[The Ghost In The Machine]
...
n1 = lcm(2,3,...,n) + 2
n2 = lcm(2,3,...,n) + n

where lcm is "least common multiple".

[Phil Carmody]
Aside - is there a common name for the function of n that has
value lcm(1..n)?

I don't think so, although it's a "very well-known function". See

http://www.research.att.com/~njas/sequences/A003418

The natural log of lcm(1..n) is often denoted via psi(n), as, e.g., in
equation (7) at:

For those perverts who prefer the real numbers to the integers! ;-)

http://mathworld.wolfram.com/ChebyshevFunctions.html

While it may be a display issue with my browser, equation (5) on the same
page /appears/ to be wrong. Should be:

psi(x) = sum over all i in 1 .. pi(x) of
k * ln(p_i) where
k is the largest integer such that (p_i)^k <= x

MW's correct - they've got a double sum. A sum of a single ln(p_i)
for each k such that ...

Phil
--
The man who is always worrying about whether or not his soul would be
damned generally has a soul that isn't worth a damn.
-- Oliver Wendell Holmes, Sr. (1809-1894), American physician and writer
.



Relevant Pages

  • Re: Recursive Prime Counter (this time in Mathematica)
    ... sum rather than add (makes little difference nowadays). ... For an interpreted mathematical language - I recommend picking ... The man who is always worrying about whether or not his soul would be ...
    (sci.math)
  • Re: natural log of a summation
    ... Ok for progamming reasons which are hard to explain, ... >comes because I am dealing with vectors, and the result of the "the sum" ... >but obvious this hits problems when a component is -ve. ... Should I be taking the natural log of each component anyway? ...
    (sci.math)
  • Re: Series problem
    ... Taylor series expansions with their sum functions for tomorrow. ... "ln is the natural log." ...
    (comp.sys.hp48)
  • Re: George Nakashima - American Woodworker
    ... Tom Watson wrote: ... If the 'soul' is the sum of the tree's life experience, ...
    (rec.woodworking)