OFFSET
0,5
MAPLE
A089591 := proc(n) option remember ; local nhalf ; if n <= 1 then RETURN(n) ; else nhalf := floor(n/2) ; if n mod 2 = 1 then RETURN(10*A089591(nhalf) +1) ; else RETURN(10*(A089591(nhalf-1)+1)) ; fi ; fi ; end: A089600 := proc(n) option remember ; local nhalf ; nhalf := floor(n/2) ; if n <= 1 then RETURN(n) ; else if n mod 2 = 1 then RETURN(10*A089600(nhalf) +1) ; else RETURN(10*A089591(nhalf-1)+2) ; fi ; fi ; end: A089601 := proc(n) if n mod 2 = 0 then A089600(n/2) ; else A089591((n-1)/2) ; fi ; end: seq(A089601(n), n=0..80) ; # R. J. Mathar, Jul 20 2007
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Jeff Erickson, Dec 31 2003
EXTENSIONS
More terms from R. J. Mathar, Jul 20 2007
STATUS
approved