Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to define a new [silly] calendar, because there aren't enough of them yet.

My calendar, so far, is specified:

epoch (orthodox) is the moment the leading edges of the dinosaur-killing asteroid touched the surface of the earth.

As this is somewhat difficult to define, for practical purposes we'll use:

epoch: same as the unix epoch, i.e., 1970-01-01T00:00:00Z.

From that point, start counting seconds in successive prime-numbered sequence; these are termed 'dinosecs', such that epoch + 2s = dinosec 1, epoch + 2s + 3s = dinosec 2, epoch + 2s + 3s + 5s = dinosec 3, dinosec 3 + 7s = dinosec 4, etc etc.

It is, however, forbidden to use seconds in the actual specification of time - all time must be referred to in dinosecs and fractional dinosecs.

Here's my question: What is a good way to go about defining fractional dinosecs?

One obvious way is to simply take the number of seconds since the last dinosec and divide it by the number of seconds between that dinosec and the next one. I dislike that method because it makes dinosecs nondifferentiable at whole-numbers - i.e. there's a sudden change in how quickly the fractional part is incrementing.

Is there something that could be done with $x/\ln(x)$, for example? Or is there an more rigorous way to do it?

Any ideas would be appreciated.

share|cite|improve this question
Let me try to rephrase this as mathematically as possible. You want a function which 1) restricts to your prime-sum function at the integers, 2) is infinitely differentiable, 3) is strictly increasing, and presumably 4) is not too difficult to compute. Does that sound right? There are going to be lots of ways to satisfy 1)-3), but I'm not sure there's a single "natural" way, or one that does very well at 4)... – Micah Feb 1 '13 at 19:26
I first suggested $$ \tau(t)=\sum_{n=1}^\infty\frac{\sin\pi(t-n)}{\pi(t-n)}\sum_{k=1}^np_k\;, $$ but now I realized that doesn't converge because the second factor grows more quickly than the first one decays. – joriki Feb 1 '13 at 19:26
Micah, yes, that sounds right. And now that you put it that way, I'm guessing this is impossible, because such a function would generate the primes for you. So, I guess I need to rethink this. Any ideas? – dmd Feb 1 '13 at 20:00

You could use a cubic spline, which would give you the requisite smoothness. But calculations might get hairy...

share|cite|improve this answer

approximating the prime counting function

(part of the inexplicable secrets of creation)

share|cite|improve this answer
What is the plot about? – Babak S. Jul 7 '13 at 9:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.