A277779 Numbers k that only contain a 0 in bases that divide k.
1, 2, 3, 4, 6, 7, 8, 12, 14, 15, 16, 22, 24, 30, 36, 42, 44, 48, 60, 63, 72, 80, 90, 96, 120, 156, 158, 160, 186, 192, 212, 214, 216, 222, 240, 288, 312, 420, 432, 468, 474, 480, 484, 618, 620, 624, 840, 942, 948, 960, 996, 1124, 1200, 1224, 1494, 1560, 1656
Offset: 1
Examples
6 only contains a 0 in bases 2, 3, and 6. Those bases divide 6. Therefore, 6 is in this sequence.
Links
- Chai Wah Wu, Table of n, a(n) for n = 1..261 (all terms < 10^11; first 250 terms from Charles R Greathouse IV)
Crossrefs
Cf. A069575.
Programs
-
PARI
is(n)=for(b=2,sqrtint(n-1), if(Set(digits(n,b))[1]==0 && n%b, return(0))); 1 \\ Charles R Greathouse IV, Oct 31 2016
Extensions
More terms from Alois P. Heinz, Oct 30 2016
Comments