login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A261794 a(n) is the smallest nonzero number that is not a substring of n in decimal representation. 4

%I #14 Sep 09 2020 11:29:28

%S 1,2,1,1,1,1,1,1,1,1,2,2,3,2,2,2,2,2,2,2,1,3,1,1,1,1,1,1,1,1,1,2,1,1,

%T 1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,

%U 1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1

%N a(n) is the smallest nonzero number that is not a substring of n in decimal representation.

%C A261795(n) = a(A261793(n)).

%H Reinhard Zumkeller, <a href="/A261794/b261794.txt">Table of n, a(n) for n = 0..10000</a>

%o (Haskell)

%o import Data.List (isInfixOf)

%o a261794 x = f $ tail a031298_tabf where

%o f (cs:css) = if isInfixOf cs (a031298_row x)

%o then f css else foldr (\d v -> 10 * v + d) 0 cs

%Y Cf. A007089, A031298, A261795, A261793, A261461, A261787.

%K nonn,base

%O 0,2

%A _Reinhard Zumkeller_, Sep 01 2015

%E Name corrected by _Álvar Ibeas_, Sep 08 2020

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 16:45 EDT 2024. Contains 371989 sequences. (Running on oeis4.)