Skip to content

Calculates the Collatz series, given a positive integer

Notifications You must be signed in to change notification settings

ralphtheninja/collatz-series

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

collatz-series

Calculates the Collatz series given a positive integer.

api

const collatz = require('collatz-series')
console.log(collatz(44))
// [ 44, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1 ]

links

About

Calculates the Collatz series, given a positive integer

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published