cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A092451 Numbers that either contain the digit 2 or are divisible by 2.

This page as a plain text file.
%I A092451 #19 Jul 19 2016 04:09:47
%S A092451 0,2,4,6,8,10,12,14,16,18,20,21,22,23,24,25,26,27,28,29,30,32,34,36,
%T A092451 38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,
%U A092451 84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,121
%N A092451 Numbers that either contain the digit 2 or are divisible by 2.
%H A092451 Vincenzo Librandi, <a href="/A092451/b092451.txt">Table of n, a(n) for n = 0..2000</a>
%t A092451 Select[Range[0,140],DigitCount[#,10,2]>0||Divisible[ #,2]&] (* _Harvey P. Dale_, Jun 28 2011 *)
%t A092451 Select[Range[0, 300], Mod[#, 2] == 0||MemberQ[IntegerDigits[#], 2] &] (* _Vincenzo Librandi_, Jul 19 2016 *)
%o A092451 (PARI) isok(n) = !(n % 2) || vecsearch(vecsort(digits(n,2),,8),2); \\ _Michel Marcus_, Jul 19 2016
%Y A092451 Cf. A092433, A092452, A092453, A092454, A092455, A092456, A092457.
%K A092451 nonn,base
%O A092451 0,2
%A A092451 _N. J. A. Sloane_, Mar 24 2004
%E A092451 More terms from Mohammed Bouayoun (bouyao(AT)wanadoo.fr), Mar 25 2004