Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
A121024
Multiples of 4 containing a 4 in their decimal representation.
34
4, 24, 40, 44, 48, 64, 84, 104, 124, 140, 144, 148, 164, 184, 204, 224, 240, 244, 248, 264, 284, 304, 324, 340, 344, 348, 364, 384, 400, 404, 408, 412, 416, 420, 424, 428, 432, 436, 440, 444, 448, 452, 456, 460, 464, 468, 472, 476, 480, 484, 488, 492, 496
OFFSET
1,1
COMMENTS
Intersection of A008586 and A011534.
FORMULA
a(n) ~ 4n. - Charles R Greathouse IV, Jul 16 2011
MATHEMATICA
Select[4Range[150], DigitCount[#, 10, 4]>0&] (* Harvey P. Dale, Jun 11 2011 *)
PROG
(PARI) is(n)=if(n%4, return(0)); n=eval(Vec(Str(n))); for(i=1, #n, if(n[i]==4, return(1))); 0 \\ Charles R Greathouse IV, Jul 16 2011
KEYWORD
nonn,base,easy
AUTHOR
Reinhard Zumkeller, Jul 21 2006
EXTENSIONS
Typo in comment fixed by Reinhard Zumkeller, May 01 2011
STATUS
approved