cp's OEIS Frontend

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.

A256882 Numbers divisible by prime(d+1) for each digit d of their base-2 representation.

Original entry on oeis.org

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

Views

Author

M. F. Hasler, Apr 11 2015

Keywords

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.

Examples

			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.
		

Crossrefs

Programs

  • PARI
    is(n,b=2)=!for(i=1,#d=Set(digits(n,b)),n%prime(d[i]+1)&&return)