Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

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 looking forward function, that works like that $\mathbb{N}^{n+1} \rightarrow \mathbb N$:

$f(y, x_1, x_2, \dots ,x_n)=x_y$

We use projection $\Pi^n_k$, but I need something with "dynamic" size and parameters. I need it for writing primitive version of summation of n numbers. I have seen this function in some proofs like , but I haven't seen it's definition

Thank you

share|cite|improve this question
up vote 1 down vote accepted

I have already solved this problem. I use $n$ as constant parameter. so the $f$ as $\mathbb N^{n+1} \rightarrow \mathbb N$ function is defined: $$f(\bar x, y)= \Pi^{n+1}_n (f'(\bar x, y))$$ $$f'(\bar x, 0)=(\Pi^{n+1}_2 \times \Pi^{n+1}_3 \times \dots \times \Pi^{n+1}_n \times \Pi^{n+1}_1 ) (\bar x)$$ $$f'(\bar x, y+1)=(\Pi^{n+1}_2 \times \Pi^{n+1}_3 \times \dots \times \Pi^{n+1}_n \times \Pi^{n+1}_1 ) (f'(\bar x,y))$$

share|cite|improve this answer

The standard trick uses the Gödel $\beta$-function to encode sequences of variable length.

share|cite|improve this answer

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.