OFFSET
0,3
LINKS
EXAMPLE
For n = 11:
- using F(-k) = A039834(k):
- 11 = F(-1) + F(-4) + F(-7),
- so a(11) = F(-1) * F(-4) * F(-7) = 1 * -3 * 13 = -39.
PROG
(PARI) a(n) = { my (v=1); 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