OFFSET
0,7
COMMENTS
In other words, a(n) is the number of ways to write 2*n as the sum of two ternary anagrams.
Leading zeros are ignored.
Two ternary anagrams have necessarily the same parity, hence an odd number cannot be the sum of two ternary anagrams.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..19683
Rémy Sigrist, PARI program for A330827
Rémy Sigrist, Scatterplot of (x, y) such that 0 <= x, y <= 3^7 and x and y are ternary anagrams (a(n) corresponds to the number of pixels (x, y) such that x+y = n)
EXAMPLE
For n = 6:
- we can write 12 as u + v in the following ways:
u v ter(u) ter(v)
- - ------ ------
5 7 12 21
6 6 20 20
7 5 21 12
- hence a(6) = 3.
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 12 2020
STATUS
approved