A256883 Numbers divisible by prime(d+1) for each digit d of their base-3 representation.
0, 12, 20, 30, 36, 60, 80, 84, 90, 108, 120, 150, 170, 180, 210, 240, 246, 252, 270, 282, 300, 324, 330, 336, 354, 360, 390, 420, 450, 480, 510, 540, 560, 570, 600, 630, 650, 660, 690, 710, 720, 732, 738, 750, 756, 768, 780, 810, 822, 840, 846, 870, 900, 930, 960, 972, 984, 990, 1002, 1008, 1020, 1050, 1056, 1062, 1080, 1092, 1110
Offset: 1
Examples
0 is divisible by prime(0+1)=2. 12 = 110_3 (in base 3), and is divisible by prime(1+1)=3 and by prime(0+1)=2.
Programs
-
PARI
is(n,b=3)=!for(i=1,#d=Set(digits(n,b)),n%prime(d[i]+1)&&return)
Comments