keyboardxtreme 0 Newbie Poster

HI GUYS
am new to this forum and please bear with me if my questions have been tackled before or seems silly.

i need some help on the following

i need to evenly distribute elements into ab-tree like tree but with many nodes say (n). there is one root node and i will call it 0. then root nodes have say 10 child nodes and each child node have the same number of child nodes up to a certain level say 4.

what i want is distribute numbers into it evenly e.g if the tree have 100 nodes and i have 100 numbers 1 to 100 each node must have a number in it.

can there be an algorithm or equation that can return me the specific node that a certain number must be stored or a way of numbering each node so that number 1 will sit in node 1 , number 15 will sit in node 15 and so on.

thanks in advance.