OFFSET
1,2
COMMENTS
Numbers of the form (3^i - 3^j)/2 with i > j.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
1080 = 3^3 + 3^4 + 3^5 + 3^6, so 1080 is in the sequence.
+------+--------+
| a(n) | base 3*|
+------+--------+
| 1 | 1 |
| 3 | 10 |
| 4 | 11 |
| 9 | 100 |
| 12 | 110 |
| 13 | 111 |
| 27 | 1000 |
| 36 | 1100 |
| 39 | 1110 |
| 40 | 1111 |
+------+--------+
* - a(n) written in base 3.
MAPLE
[seq(seq((3^i-3^j)/2, j=i-1..0, -1), i=1..20)]; # Robert Israel, Aug 19 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Aug 15 2019
STATUS
approved