OFFSET
1,2
FORMULA
If p is prime, a(p) = 3^(p-1).
a(n) is divisible by 3 for n > 1.
EXAMPLE
n | a(n)
-----+-----------------------
2 | 3.
3 | 9 = 3^2.
4 | 27 = 3^3.
5 | 81 = 3^4.
6 | 99 = 3^2 * 11.
7 | 729 = 3^6.
8 | 297 = 3^3 * 11.
9 | 1089 = 3^2 * 11^2.
10 | 891 = 3^4 * 11.
11 | 59049 = 3^10.
12 | 1683 = 3^2 * 11 * 17.
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Jul 02 2024
STATUS
approved