OFFSET
1,2
COMMENTS
Self-inverse permutation of the natural numbers;
A115310(n+6,7) = a(n);
if n is written in octal representation, then a(n) is the value after replacing all digits d (but not the leading one) by 7-d.
LINKS
FORMULA
a(n) = n XOR (8^floor(log_8(n)) - 1). - Alan Michael Gómez Calderón, Mar 27 2025
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Jan 20 2006
STATUS
approved
