login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A261794 a(n) = smallest nonzero number that is not a substring of n in ternary representation. 4
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, 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, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

COMMENTS

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

LINKS

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

PROG

(Haskell)

import Data.List (isInfixOf)

a261794 x = f $ tail a031298_tabf where

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

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

CROSSREFS

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

Sequence in context: A031286 A031276 A305080 * A098744 A273975 A025429

Adjacent sequences:  A261791 A261792 A261793 * A261795 A261796 A261797

KEYWORD

nonn

AUTHOR

Reinhard Zumkeller, Sep 01 2015

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 October 17 14:31 EDT 2019. Contains 328114 sequences. (Running on oeis4.)