

A030143


Even numbers in which parity of digits alternates.


7



0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 30, 32, 34, 36, 38, 50, 52, 54, 56, 58, 70, 72, 74, 76, 78, 90, 92, 94, 96, 98, 210, 212, 214, 216, 218, 230, 232, 234, 236, 238, 250, 252, 254, 256, 258, 270, 272, 274, 276, 278, 290, 292, 294, 296, 298, 410, 412, 414
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,2


LINKS



FORMULA



MATHEMATICA

id[n_]:=IntegerDigits[n]; t={}; Do[If[Length[id[n]]==1, AppendTo[t, n], If[Union[Abs[Differences[Boole /@ EvenQ[id[n]]]]]=={1}, AppendTo[t, n]]], {n, 0, 414, 2}]; t (* Jayanta Basu, May 07 2013 *)


PROG

(Haskell)
a030143 n = a030143_list !! (n1)
a030143_list = filter even a030141_list


CROSSREFS



KEYWORD

nonn,base,easy


AUTHOR



EXTENSIONS



STATUS

approved



