OFFSET
1,1
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..19683
FORMULA
PROG
(PARI)
A117966(n) = subst(Pol(apply(x->if(x == 2, -1, x), digits(n, 3)), 'x), 'x, 3); \\ From A117966 by Gheorghe Coserea
memoA365711 = Map();
CROSSREFS
KEYWORD
sign
AUTHOR
Antti Karttunen, Sep 19 2023
STATUS
approved