OFFSET
1,1
COMMENTS
Is a(n) == 16 (mod 18) for all n?
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A091077(n) / 4. - Hugo Pfoertner, Jun 10 2022
EXAMPLE
16 is a term since its ternary representation is 121 and its balanced ternary representation (with 2 standing for the -1 digit) is 1221, and both are palindromes.
MATHEMATICA
Select[Range[0, 3*10^6], PalindromeQ[d3 = IntegerDigits[#, 3]] && PalindromeQ[db3 = balTernDigits[#]] && d3 != db3 &] (* using balTernDigits by Robert G. Wilson v at A134027 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Amiram Eldar, Jun 10 2022
STATUS
approved