login
A256882
Numbers divisible by prime(d+1) for each digit d of their base-2 representation.
13
0, 3, 6, 12, 15, 18, 24, 30, 36, 42, 48, 54, 60, 63, 66, 72, 78, 84, 90, 96, 102, 108, 114, 120, 126, 132, 138, 144, 150, 156, 162, 168, 174, 180, 186, 192, 198, 204, 210, 216, 222, 228, 234, 240, 246, 252, 255, 258, 264, 270, 276, 282, 288, 294, 300, 306, 312, 318, 324, 330, 336, 342, 348, 354, 360, 366, 372, 378, 384, 390, 396, 402
OFFSET
1,2
COMMENTS
Also, numbers divisible by 3 which are even or have no digit zero in their base-2 representation.
The base-2 variant of A256883 - A256884, A256865 - A256870 in bases 3,...,10.
EXAMPLE
6 = 110_2 (in base 6), and 6 is divisible by prime(1+1)=3 and by prime(0+1) = 2.
9 = 101_2 is not in the sequence because it is odd but has a binary digit 0.
PROG
is(n, b=2)=!for(i=1, #d=Set(digits(n, b)), n%prime(d[i]+1)&&return)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. F. Hasler, Apr 11 2015
STATUS
approved