OFFSET
1,2
COMMENTS
To perform a "successive Oware operation" on n we must see the digits of n as a succession of numbers (539 is seen as the succession 5;3;9). We then replace the leftmost number of n with 0 and then "distribute" the (former) value of that number on all numbers, by increasing by 1 the following numbers ("wrapping" around, if necessary, to start over with the first number after the last has been increased). The same task is done with the second number of the result, then the third number of the last result, etc. until the rightmost number of the end result has been transformed. So, if n has k digits, the Oware operation will be done k times altogether.
EXAMPLE
The Oware operation on 539 transforms first 539 into the numbers 5;3;9. It consists then of taking the 5 (and making this number zero) and then increase 5 times the subsequent numbers in a cyclic manner: 3->4; 9->10; 0->1; 4->5; 10->11, which yields the three numbers 1;5;11. The Oware operation is then repeated with 5 (the second number of the result) which turns 1;5;11 into 3;1;13. The last Oware operation is with 13, the rightmost number of the last result, which turns 3;1;13 into 8;5;4. Thus a(539) = 854.
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Eric Angelini and Jean-Marc Falcoz, Dec 29 2019
STATUS
approved