OFFSET
1,3
COMMENTS
Take list of integers n >= 1, move right digit of each term to left end of next term.
FORMULA
a(n) = (n -1 mod 10)*10^A004216(n) + floor(n/10). # Robert Israel, Jul 21 2017
EXAMPLE
For n=46, n-1 is 45, so a(46) is the concatenation of 5 (the unit digit of 45) and 4 (46 without 6), giving 54.
For n=123, n-1 is 122, so a(123) is the concatenation of 2 (the unit digit of 122) and 12 (123 without 3), giving 212.
MAPLE
f:= n -> (n-1 mod 10) * 10^ilog10(n) + floor(n/10);
PROG
(PARI) a(n) = my(precd = (n-1)%10); if (n < 10, precd, eval(concat(Str(precd), Str(n\10))));
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michel Marcus, Jul 21 2017
STATUS
approved