🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

catalan

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

catalan

Calculate Catalan numbers

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

catalan

C(5) = 42 noncrossing partitions of a 5-element set

A small function for calculating Catalan numbers.

usage

NPM

> const catalan = require('catalan')
> catalan(5)
42

> catalan(-1)
NaN

see also

  • semibran/narayana - calculate Narayana numbers

license

MIT © Brandon Semilla

Keywords

catalan

FAQs

Package last updated on 27 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts