login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A051003
Beastly (or hateful) numbers: numbers containing the string 666 in their decimal expansion.
13
666, 1666, 2666, 3666, 4666, 5666, 6660, 6661, 6662, 6663, 6664, 6665, 6666, 6667, 6668, 6669, 7666, 8666, 9666, 10666, 11666, 12666, 13666, 14666, 15666, 16660, 16661, 16662, 16663, 16664, 16665, 16666, 16667, 16668, 16669, 17666, 18666
OFFSET
1,1
LINKS
Tony Padilla and Brady Haran, The Most Evil Number, Numberphile video (2018)
Eric Weisstein's World of Mathematics, Beast Number
MATHEMATICA
Select[Range[18666], ! StringFreeQ[ToString[#], "666"] &] (* Arkadiusz Wesolowski, Sep 08 2011 *)
KEYWORD
nonn,less,easy,base
STATUS
approved