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.

A030143 Even numbers in which parity of digits alternates.

Original entry on oeis.org

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
Offset: 1

Views

Author

Keywords

Crossrefs

Cf. A030142, A062285, intersection of A005843 and A030141.

Programs

  • Haskell
    a030143 n = a030143_list !! (n-1)
    a030143_list = filter even a030141_list
    -- Reinhard Zumkeller, Aug 31 2013
  • 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 *)

Formula

(1 - a(n) mod 2) * A228710(a(n)) = 1. - Reinhard Zumkeller, Aug 31 2013

Extensions

Offset corrected by Reinhard Zumkeller, Aug 31 2013