OFFSET
1,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
For n = 1594426:
- the ternary expansion of 1594426 is "10000000010211",
- the corresponding nonzero digits are "11211", which are palindromic,
- hence 1594426 belongs to the sequence.
MATHEMATICA
Select[Range[0, 200], PalindromeQ[FromDigits[IntegerDigits[#, 3]/.(0-> Nothing)]]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jun 22 2020 *)
PROG
(PARI) is(n, base=3) = my (t=select(sign, digits(n, base))); t==Vecrev(t)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Nov 11 2018
STATUS
approved