# tetranacci

> Tetranacci function

Latest version **1.0.2** (published 2020-12-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install tetranacci
pnpm add tetranacci
yarn add tetranacci
bun add tetranacci
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-12-25 |
| First published | 2020-12-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Roman Gusev |
| Maintainers | 3 |
| Keywords | tetranacci, fibonacci |

## Links

- npm: https://www.npmjs.com/package/tetranacci
- Repository: https://github.com/102/fibgen
- Homepage: https://github.com/102/fibgen#readme
- Issues: https://github.com/102/fibgen/issues
- npm.io page: https://npm.io/package/tetranacci

## Recent versions

- 1.0.2 (latest) — 2020-12-25

## README

# Tetranacci function

Tetranacci function as defined in the [OEIS A000078](https://oeis.org/A000078)
article.

This is a recursive function that works the following way:

```js
tetranacci(0n) // => 0n
tetranacci(1n) // => 0n
tetranacci(2n) // => 0n
tetranacci(3n) // => 1n
tetranacci(4n) // => 1n, as a result of tetranacci(3n) + tetranacci(2n) + tetranacci(1n) + tetranacci(0n)
// ...
tetranacci(9n) // => 29n, as a result of tetranacci(8n) + tetranacci(7n) + tetranacci(6n) + tetranacci(5n)
```

---
_Source: https://npm.io/package/tetranacci · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
