encyclopegia.org

Negafibonacci coding

In mathematics, negafibonacci coding is a universal code which encodes nonzero integers into binary code words.[src] It is similar to Fibonacci coding, except that it allows both positive and negative integers to be represented.[src] All codes end with "11" and have no "11" before the end.[src]

In mathematics, negafibonacci coding is a universal code which encodes nonzero integers into binary code words.[src] It is similar to Fibonacci coding, except that it allows both positive and negative integers to be represented.[src] All codes end with "11" and have no "11" before the end.[src] If x is positive, compute the greatest odd negative integer n such that the sum of the odd negative terms of the negafibonacci sequence from −1 to n with a step of −2, is greater than or equal to x : n \in \{ - \left( 2k + 1 \right) , k \in [0, \infty [ \} , \quad \sum_{i=-1, \; i \; odd}^{n-2} f(i) If x is negative, compute the greatest even negative integer n such that the sum of the even negative terms of the negafibonacci sequence from 0 to n with a step of −2, is less than or equal to x : n \in \{ - 2k , k \in [2, \infty [ \} , \quad \sum_{i=-2, \; i \; even}^{n-2} f(i) > x \geq \sum_{i=-2, \; i \; even}^{n} f(i) Add a 1 at the |n|^{\text{th}} bit of the binary word.[src] Subtract f(n) from x .[src] Repeat the process from step 1 with the new value of x, until it reaches 0.[src] Add a 1 on the left of the resulting binary word to finish the encoding.[src] To decode an encoded binary word, remove the leftmost 1 from the binary word, since it is used only to denote the end of the encoded number.[src] Then assign the remaining bits the values of the negafibonacci sequence from −1 (1, −1, 2, −3, 5, −8, 13...), and sum the all the values associated with a 1.[src]

12 sentences · 12 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Negafibonacci coding." encyclopegia.org, 2026, https://encyclopegia.org/wiki/negafibonacci-coding. Accessed 25 November 2026.

Chicago

"Negafibonacci coding." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/negafibonacci-coding.

APA

encyclopegia.org. (2026). Negafibonacci coding. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/negafibonacci-coding

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

arithmetic coding

stub · references available

Advanced Video Coding

stub · references available

Coding Technologies

stub · references available

entropy coding

stub · references available

superdense coding

stub · references available

Unified Speech and Audio Coding

stub · references available

Dirty paper coding

stub · references available

Common coding theory

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1362628415 · 0.5 · snapshot enwiki-001362628415

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.