OFFSET
0,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
PROG
(Haskell)
import Data.List (isInfixOf)
a261787 x = f $ tail a030341_tabf where
f (cs:css) = if isInfixOf cs (a030341_row x)
then f css else foldr (\d v -> 3 * v + d) 0 cs
(PARI) ts(n) = Str(fromdigits(digits(n, 3)));
a(n) = my(s=ts(n), k=1); while (#strsplit(s, ts(k)) != 1, k++); k; \\ Michel Marcus, Feb 05 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Sep 01 2015
STATUS
approved