Generate NegaFibonacci Numbers
Generate Fibonacci numbers extended to negative indices using F(-n) = (-1)^(n+1) × F(n).
What Are NegaFibonacci Numbers?
Pick a range like -20 to 20 and watch the Fibonacci sequence run both directions from zero. The negative side alternates signs — F(-1)=1, F(-2)=-1, F(-3)=2, F(-4)=-3 — which falls out of the identity F(-n) = (-1)^(n+1) × F(n). And everything runs in your browser. Nothing gets uploaded.