OFFSET
0,3
COMMENTS
m is a local maximum iff m == 9 modulo 10 (see A017377).
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
EXAMPLE
n=27 -> '2''7' -> '10''111' -> '10111' -> 23: a(27)=23.
See also A257831.
MATHEMATICA
Table[FromDigits[Flatten[IntegerDigits[#, 2]&/@IntegerDigits[n]], 2], {n, 80}] (* Harvey P. Dale, Aug 30 2014 *)
PROG
(Haskell)
import Data.Maybe (mapMaybe)
a080719 = foldr (\b v -> 2 * v + b) 0 .
concat . mapMaybe (flip lookup bin) . a031298_row
where bin = zip [0..9] a030308_tabf
-- Reinhard Zumkeller, May 10 2015
(Python)
def A080719(n):
....return int(''.join((format(int(d), 'b') for d in str(n))), 2)
# Chai Wah Wu, May 10 2015
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Mar 06 2003
EXTENSIONS
a(0)=0 prepended and offset changed by Reinhard Zumkeller, May 10 2015
STATUS
approved