OFFSET
0,5
COMMENTS
This sequence is a variant of A307651, and has infinitely many nonzero terms.
LINKS
FORMULA
a(n) != 0 iff n belongs to A321682.
EXAMPLE
| 3^0 3^1 2^2 |
a(22) = a(3*3! + 2*2! + 0*1!) = det | 2^0 2^1 2^2 | = -6.
| 0^0 0^1 0^2 |
PROG
(PARI) a(n) = my (d=[]); for (r=2, oo, if (n, d=concat(n%r, d); n\=r, return (matdet(matrix(#d, #d, r, c, d[r]^(c-1))))))
CROSSREFS
KEYWORD
sign,base
AUTHOR
Rémy Sigrist, Apr 23 2019
STATUS
approved