A256868 Numbers divisible by prime(d+1) for each digit d of their base-8 representation.
0, 9, 33, 57, 72, 130, 210, 264, 456, 570, 576, 585, 660, 969, 1040, 1050, 1170, 1365, 1540, 1680, 1995, 2112, 2145, 2508, 2600, 2730, 2860, 2925, 3366, 3648, 3705, 4047, 4104, 4170, 4356, 4488, 4560, 4608, 4620, 4680, 4683, 4809, 4998, 5130, 5250, 5265, 5280, 6825, 7752, 8210, 8320, 8400, 8850, 9240, 9350, 9360, 9555
Offset: 1
Programs
-
Mathematica
Select[Range[0,10000],And@@Divisible[#,Prime[IntegerDigits[#,8]+1]]&] (* Harvey P. Dale, May 06 2015 *)
-
PARI
is(n,b=8)=!for(i=1,#d=Set(digits(n,b)),n%prime(d[i]+1)&&return)
Comments