OFFSET
1,3
COMMENTS
Numbers k whose base-3 representation begins with the same digits as k itself.
LINKS
Scott R. Shannon, Table of n, a(n) for n = 1..500
EXAMPLE
220_10 = 22011_3, which also begins with '220'.
PROG
(PARI) isok(n) = my(vb=digits(n, 3), vd=digits(n)); vd == vector(#vd, k, vb[k]); \\ Michel Marcus, Apr 08 2019
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Scott R. Shannon, Apr 01 2019
STATUS
approved