Algorithms_in_C  1.0.0
Set of algorithms implemented in C.
collatz.c File Reference

Implementation of Collatz' conjecture More...

#include <stdio.h>
#include <stdlib.h>
Include dependency graph for collatz.c:

Functions

int main (int argc, char *argv[])
 Main function.
 

Detailed Description

Implementation of Collatz' conjecture

Collatz conjecture: a series for a number \(n\) in which if \(n\) even then the next number is \(\frac{n}{2}\) ,but if n is odd then the next number is \(3n+1\). This series continues till \(n\) reaches 1