OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
19 in binary is 10011, which has 3 ones. a(18) = 28. Checking the integers > 28, 29 is not divisible by 3. But 30 is divisible by 3. So a(19) = 30.
MATHEMATICA
a[1] = 1; a[n_] := a[n] = Ceiling[(a[n - 1] + 1)/(bw = DigitCount[n, 2, 1])] * bw; Array[a, 100] (* Amiram Eldar, Jul 16 2023 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Leroy Quet, Jul 08 2008
EXTENSIONS
Extended by Ray Chandler, Jun 21 2009
Wrong term 3 removed by Amiram Eldar, Jul 16 2023
STATUS
approved