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.

Showing 1-2 of 2 results.

A138166 Numbers containing their length in their decimal representation.

Original entry on oeis.org

1, 12, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 32, 42, 52, 62, 72, 82, 92, 103, 113, 123, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 143, 153, 163, 173, 183, 193, 203, 213, 223, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 243, 253, 263, 273, 283
Offset: 1

Views

Author

Reinhard Zumkeller, Mar 03 2008

Keywords

Crossrefs

Cf. A038528 (subsequence).

Programs

  • Haskell
    import Data.List (isInfixOf)
    a138166 n = a138166_list !! (n-1)
    a138166_list = filter (\x -> show (a055642 x) `isInfixOf` show x) [0..]
    -- Reinhard Zumkeller, Jul 04 2012

A138168 Numbers containing their length in binary representation.

Original entry on oeis.org

1, 2, 6, 7, 8, 9, 12, 20, 21, 22, 23, 26, 27, 29, 38, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 71, 78, 79, 87, 92, 93, 94, 95, 103, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130
Offset: 1

Views

Author

Reinhard Zumkeller, Mar 03 2008

Keywords

Examples

			20 ->'10100', length = 5 ->'101', therefore 20 is a term;
200 ->'11001000', length = 8 ->'1000', therefore 200 is a term.
		

Crossrefs

Programs

  • Mathematica
    lbrQ[n_]:=Module[{idn2=IntegerDigits[n,2]},SequenceCount[idn2, IntegerDigits[ Length[ idn2],2]]>0]; Select[Range[200],lbrQ] (* The program uses the SequenceCount function from Mathematica version 10 *) (* Harvey P. Dale, Oct 07 2015 *)
Showing 1-2 of 2 results.