login
Numbers that either contain the digit 8 or are divisible by 8.
5

%I #11 Jul 19 2016 03:16:20

%S 0,8,16,18,24,28,32,38,40,48,56,58,64,68,72,78,80,81,82,83,84,85,86,

%T 87,88,89,96,98,104,108,112,118,120,128,136,138,144,148,152,158,160,

%U 168,176,178,180,181,182,183,184,185,186,187,188,189,192,198,200,208,216,218

%N Numbers that either contain the digit 8 or are divisible by 8.

%H Vincenzo Librandi, <a href="/A092456/b092456.txt">Table of n, a(n) for n = 0..1000</a>

%t Select[Range[0, 300], Mod[#, 8] == 0||MemberQ[IntegerDigits[#], 8] &] (* _Vincenzo Librandi_, Jul 19 2016 *)

%Y Cf. A092433, A092451-A092457.

%K nonn,base

%O 0,2

%A _N. J. A. Sloane_, Mar 24 2004

%E More terms from Mohammed Bouayoun (bouyao(AT)wanadoo.fr), Mar 25 2004

%E Added missing term 188 by _Vincenzo Librandi_, Jul 19 2016