OFFSET
1,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = n * ceiling(2^(n-1)/n). - Alois P. Heinz, Jul 11 2009
MAPLE
a := proc (n) local k: for k while nops(convert(k*n, base, 2)) <> n do end do; k*n end proc: seq(a(n), n = 1 .. 24); # Emeric Deutsch, Jul 10 2009
a:= n-> n*ceil(2^(n-1)/n): seq(a(n), n=1..40); # Alois P. Heinz, Jul 11 2009
MATHEMATICA
Array[# Ceiling[2^(# - 1)/#] &, 32] (* Michael De Vlieger, Nov 04 2017 *)
CROSSREFS
KEYWORD
base,nonn,easy
AUTHOR
Leroy Quet, Jun 28 2009
EXTENSIONS
More terms from Emeric Deutsch and Alois P. Heinz, Jul 11 2009
STATUS
approved