OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
The integers 1 through 9 in binary are (1, 10, 11, 100, 101, 110, 111, 1000, 1001). So the numbers of 1's in these binary representations form the sequence (1,1,2,1,2,2,3,1,2) (the first 9 terms of sequence A000120, starting from A000120(1)). 9 is divisible by all the 1's (there are 4 of those) and by the one 3. So a(9) = 4+1 = 5.
MATHEMATICA
a[n_] := Sum[Boole[Divisible[n, DigitCount[k, 2, 1]]], {k, 1, n}]; Array[a, 100] (* Amiram Eldar, Jul 16 2023 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Leroy Quet, Mar 25 2008
EXTENSIONS
Corrected and extended by Sean A. Irvine, Oct 12 2009
STATUS
approved