This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A306263 #44 Sep 08 2022 08:46:21 %S A306263 1,2,4,6,8,10,12,16,18,20,24,32,34,36,40,42,48,60,64,66,68,72,80,84, %T A306263 92,96,108,116,120,126,128,132,136,144,156,160,168,172,180,184,192, %U A306263 204,212,216,222,228,232,240,246,252,256,264,272,276,284,288,300,310 %N A306263 Numbers k such that, for any divisor d of k, the Hamming weight of d divides k. %C A306263 The Hamming weight of a number is given by A000120. %C A306263 This sequence is a binary variant of A285815. %C A306263 This sequence is infinite as it contains all powers of 2 (A000079). %C A306263 All terms belong to A049445. %C A306263 If k belongs to the sequence, then 2*k belongs to the sequence. %C A306263 All terms except 1 are even. - _Robert Israel_, Mar 05 2019 %H A306263 Amiram Eldar, <a href="/A306263/b306263.txt">Table of n, a(n) for n = 1..10000</a> %e A306263 For n = 108: %e A306263 - the divisors of 108 are 1, 2, 3, 4, 6, 9, 12, 18, 27, 36, 54, 108, %e A306263 - the corresponding Hamming weights are 1, 1, 2, 1, 2, 2, 2, 2, 4, 2, 4, 4, %e A306263 - they all divide 108, %e A306263 - hence 108 belongs to the sequence. %e A306263 For n = 98: %e A306263 - the divisors of 98 are 1, 2, 7, 14, 49, 98, %e A306263 - the correspond Hamming weights are 1, 1, 3, 3, 3, 3, %e A306263 - 3 does not divide 98, %e A306263 - hence 98 does not belong to the sequence. %p A306263 filter:= proc(n) local F; %p A306263 F:= map(convert,map(convert,numtheory:-divisors(n),base,2),`+`); %p A306263 andmap(t -> n mod t = 0, F) %p A306263 end proc: %p A306263 select(filter, [$1..1000]); # _Robert Israel_, Mar 05 2019 %t A306263 Select[Range@ 310, With[{k = #}, AllTrue[Divisors@ k, Mod[k, DigitCount[#, 2, 1]] == 0 &]] &] (* _Michael De Vlieger_, Mar 05 2019 *) %o A306263 (PARI) is(n) = fordiv(n,d,if (n%hammingweight(d), return (0))); return ( ) %o A306263 (Magma) [k:k in [1..310]| forall{d:d in Divisors(k)| k mod &+Intseq(d,2) eq 0}]; // _Marius A. Burtea_, Dec 30 2019 %Y A306263 Cf. A000079, A000120, A049445, A141586, A285815. %Y A306263 Positions of zeros in A324393. %K A306263 nonn,base %O A306263 1,2 %A A306263 _Rémy Sigrist_, Mar 02 2019