login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A330827 a(n) is the numbers of ways to write 2*n = u + v where the ternary representations of u and of v have the same number of digits d for d = 0..2. 4
1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 3, 1, 3, 1, 5, 3, 3, 5, 3, 5, 3, 3, 1, 3, 1, 1, 1, 1, 3, 1, 3, 3, 5, 3, 5, 3, 5, 5, 5, 7, 5, 7, 7, 5, 9, 7, 7, 11, 7, 9, 7, 7, 7, 11, 9, 13, 5, 9, 5, 15, 7, 9, 7, 7, 7, 7, 7, 5, 5, 5, 3, 5, 3, 5, 3, 3, 1, 3, 1, 1, 1, 1, 3, 1, 3 (list; graph; refs; listen; history; text; internal format)
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, 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
Cf. A331216 (binary analog), A331218 (decimal analog).
Sequence in context: A365401 A212181 A256452 * A010276 A214268 A214249
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 12 2020
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 18:05 EDT 2024. Contains 371798 sequences. (Running on oeis4.)