Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Thanks ! Your recursion operator consider binary strings as queue (FIFO). Wouldn't be more natural to have a recursion operator that consider binary strings as stacks (FILO) ?
As $\pi$ is a bijection it should at least read is argument which means it must at least take a linear time (using input size). So I don't think it should be made atomic in a natural definition of primitive recursive functions. But I may be wrong !
That's a nice suggestion, but unfortunately, in real computers, projection is not a O(1) operation. Or perhaps we could extend definitions from $\mathbb N$ to $\mathbb N^*$ with some kind of typing mechanism ?
I think that $d(n)=\prod_p(m_p+1)$ for all $n$. Thanks for your answer, I was hoping that at least on some values, D(n) could be guessed without computing all $d(i)$ $i\le n$.