%I #4 Dec 10 2015 10:36:13
%S 0,1,2,11,11,22,22,22,22,101,101,202,111,111,212,121,121,222,202,202,
%T 202,212,212,212,222,222,222,1001,1001,2002,1111,1111,2112,1221,1221,
%U 2222,1111,1111,2112,1111,1111,2112,1221,1221,2222,1221,1221,2222,1221,1221,2222,1221,1221,2222,2002,2002,2002,2112,2112,2112
%N a(n) = smallest base-3 palindrome m >= n such that every base-3 digit of n is <= the corresponding digit of m; m is written in base 3.
%Y Sequences related to palindromic floor and ceiling: A175298, A206913, A206914, A261423, A262038, and the large block of consecutive sequences beginning at A265509.
%Y See A206913 for the values of m written in base 10.
%K nonn,base
%O 0,3
%A _N. J. A. Sloane_, Dec 10 2015