login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A045887 Number of distinct even numbers visible as substrings of n. 1
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 2, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 2, 1, 2, 1, 1, 1, 2, 1, 2, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 2, 2, 3, 2, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,21

LINKS

Reinhard Zumkeller, Table of n, a(n) for n = 0..10000

EXAMPLE

a(124)=5 because we can form the following even numbers: 2,4,12,14,24. a(24)=2 because we can form 2,4.

PROG

(Haskell)

import Data.List (isInfixOf)

a045887 n = length $ filter (`isInfixOf` (show n)) $ map show [0, 2..n-1]

-- Reinhard Zumkeller, Jul 19 2011

CROSSREFS

Sequence in context: A276172 A322028 A079806 * A056832 A105931 A279495

Adjacent sequences:  A045884 A045885 A045886 * A045888 A045889 A045890

KEYWORD

base,easy,nonn

AUTHOR

Felice Russo

EXTENSIONS

More terms from Fabian Rothelius, Feb 08 2001

a(102) and a(103) corrected by Reinhard Zumkeller, Jul 19 2011

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 8 19:29 EDT 2020. Contains 336298 sequences. (Running on oeis4.)