OFFSET
0,3
LINKS
EXAMPLE
For n = 11:
- using F(-k) = A039834(k):
- -11 = F(-4) + F(-6),
- so a(11) = F(-4) * F(-6) = -3 * -8 = 24.
PROG
(PARI) a(n) = { my (v=1); n=-n; while (n, my (neg=0, pos=0, f); for (e=0, oo, f=fibonacci(-1-e); if (f<0, neg+=f, pos+=f); if (neg <=n && n <= pos, v*=f; n-=f; break))); return (v) }
CROSSREFS
KEYWORD
sign,base
AUTHOR
Rémy Sigrist, Aug 05 2022
STATUS
approved