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.

A121022 Even numbers containing a 2 in their decimal representation.

Original entry on oeis.org

2, 12, 20, 22, 24, 26, 28, 32, 42, 52, 62, 72, 82, 92, 102, 112, 120, 122, 124, 126, 128, 132, 142, 152, 162, 172, 182, 192, 200, 202, 204, 206, 208, 210, 212, 214, 216, 218, 220, 222, 224, 226, 228, 230, 232, 234, 236, 238, 240, 242, 244, 246, 248, 250, 252
Offset: 1

Views

Author

Reinhard Zumkeller, Jul 21 2006

Keywords

Crossrefs

Programs

  • Haskell
    a121022 n = a121022_list !! (n-1)
    a121022_list = filter (('2' `elem`) . show) [0, 2 ..]
    -- Reinhard Zumkeller, Nov 08 2013
    
  • Mathematica
    Select[2*Range[200],DigitCount[#,10,2]>0&] (* Harvey P. Dale, Nov 04 2013 *)
  • PARI
    is(n) = n%2==0 && setsearch(vecsort(digits(n)), 2) \\ Felix Fröhlich, Nov 22 2020

Formula

a(n) ~ 2n. - Charles R Greathouse IV, Mar 30 2022