login
A121028
Multiples of 8 containing an 8 in their decimal representation.
34
8, 48, 80, 88, 128, 168, 184, 208, 248, 280, 288, 328, 368, 384, 408, 448, 480, 488, 528, 568, 584, 608, 648, 680, 688, 728, 768, 784, 800, 808, 816, 824, 832, 840, 848, 856, 864, 872, 880, 888, 896, 928, 968, 984, 1008, 1048, 1080, 1088, 1128, 1168, 1184
OFFSET
1,1
FORMULA
a(n) ~ 8n. - Charles R Greathouse IV, Feb 12 2017
MATHEMATICA
Select[8*Range[150], DigitCount[#, 10, 8]>0&] (* Harvey P. Dale, Oct 20 2014 *)
PROG
(PARI) isok(n) = !(n % 8) && vecsearch(vecsort(digits(n)), 8); \\ Michel Marcus, Nov 28 2016
KEYWORD
nonn,base,easy
AUTHOR
Reinhard Zumkeller, Jul 21 2006
EXTENSIONS
Corrected by T. D. Noe, Oct 25 2006
Typo in comment fixed by Reinhard Zumkeller, May 01 2011
STATUS
approved