OFFSET
1,2
COMMENTS
Self-inverse permutation of the natural numbers;
A115310(n+3,4) = a(n);
if n is written in base 5 representation, then a(n) is the value after replacing all digits d (but not the leading one) by 4-d.
LINKS
MATHEMATICA
Table[d = IntegerDigits[n, 5]; FromDigits[Prepend[4 - Rest@d, d[[1]]], 5], {n, 72}] (* Ivan Neretin, Apr 26 2017 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Jan 20 2006
STATUS
approved