OFFSET
0,2
LINKS
Chai Wah Wu, Table of n, a(n) for n = 0..10000
EXAMPLE
11 = 1011_2, so n' = 0111_2 = 7, n'' = 1110_2 = 14, and therefore a(11) = 7+14 = 21.
MAPLE
PROG
(Python)
from __future__ import division
def A271497(n):
return int(''.join(sorted(bin(n)[2:])), 2) + int(''.join(sorted(bin(n)[2:], reverse=True)), 2) if n % 3 else n//3 # Chai Wah Wu, Apr 16 2016
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Apr 16 2016
STATUS
approved