OFFSET
1,3
LINKS
FORMULA
Appears to satisfy a linear recurrence of order 5 with signature (0, 3, 9, 18, 27). This also applies to sequences A074001-A074005. - Andrey Zabolotskiy, Dec 30 2024
PROG
(Sage)
def a(n):
if n==1: return 1
ans = 0
for x in GF(3^n):
if x.charpoly().coefficients(sparse=False)[-3:-1]==[0, 0]: ans += 1
return ans # Robin Visser, Dec 28 2024
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Frank Ruskey and Nate Kube, Aug 19 2002
EXTENSIONS
a(18) corrected and a(21) added by Robin Visser, Dec 28 2024
STATUS
approved