OFFSET
0,3
LINKS
Clark Kimberling, Table of n, a(n) for n = 0..1000
FORMULA
From Peter Bala, Dec 01 2016: (Start):
a(0) = 0; a(n) = 8*a(n/4) if n == 0 (mod 4) else a(n) = a(n-1) + 1. (End)
MAPLE
seq(n + (1/2)*add(8^k*floor(n/4^k), k = 1..floor(ln(n)/ln(4))), n = 1..100); # Peter Bala, Dec 01 2016
MATHEMATICA
Table[FromDigits[RealDigits[n, 4], 8], {n, 0, 100}]
(* Clark Kimberling, Aug 14 2012 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
EXTENSIONS
Offset changed to 0 by Clark Kimberling, Aug 14 2012
STATUS
approved