Categories
History

Rest in peace, Sir Ratan Tata!

Today, we mourn the loss of Ratan Naval Tata, an industrial titan, visionary, and humanitarian whose leadership transformed the Tata Group into a global institution and touched the lives of millions. He passed away at 86, leaving behind a legacy defined not just by business success but by a deep sense of responsibility to society.


During his tenure as Chairman of Tata Sons (1991-2012), Ratan Tata transformed the Tata Group into a global conglomerate with a presence in over 100 countries and a revenue increase from $5.7 billion to almost $100 billion. His bold and strategic decisions led to the acquisition of Tetley, Corus, and Jaguar Land Rover, putting Indian industry on the global map. He also spearheaded the launch of Tata Consultancy Services (TCS), now a leader in the IT services space, and introduced the world’s most affordable car, the Tata Nano, driven by his passion for making innovation accessible to all.

What set Ratan Tata apart was not just his business acumen but his empathetic leadership style. He believed in leading with humility, always prioritizing the well-being of employees and the community. His philanthropic vision was unparalleled – over 65% of his shares in Tata Sons were dedicated to charity, supporting education, healthcare, and rural development across India.

Ratan Tata was a leader who believed in creating opportunities rather than waiting for them. His emphasis on ethical governance, his resilience in times of adversity, and his belief in long-term impact over short-term gains made him an extraordinary leader. His legacy will continue to inspire the next generation of business leaders to think beyond profits and contribute to the greater good.

As we say goodbye to this remarkable soul, we remember him not just as a leader, but as a force for change who showed us that business can and should be a force for good. Rest in peace, Ratan Tata. Your light will continue to guide us.

'Coz sharing is caring
Categories
Games History PHP

Fibonacci Series in PHP

What is Fibonacci Series?

Fibonacci series is the sequence where the first two numbers are either 1 and 1, or 0 and 1, depending on the chosen starting point of the sequence, and each subsequent number is the sum of the previous two e.g. 0, 1, 1, 2, 3, 5, 8 etc.

The Fibonacci sequence is named after Italian mathematician Fibonacci, although the sequence had been described earlier earlier as Virahanka numbers in Indian mathematics.
Fibonacci numbers are closely related to Lucas numbers in that they are a complementary pair of Lucas sequences.

Fibonacci

The Fibonacci numbers are important in the computational run-time analysis of Euclid’s algorithm to determine the greatest common divisor of two integers: the worst case input for this algorithm is a pair of consecutive Fibonacci numbers.

Recognizing Fibonacci numbers

The question may arise whether a positive integer x is a Fibonacci number or not. This is true if and only if one or both of 5x^{2}+4 or 5x^{2}-4 is a perfect square.

Fibonacci Series without recursion:

<?php
$term = 10;
$num1 = 0;
$num2 = 1;

for ( $i = 0; $i < $term; $i++ ) {
    if ( $i <= 1 ) { 
        $result = $i;
    } else {
        $result = $num1 + $num2;
        $num1 = $num2;
        $num2 = $result;
    }
    echo ' ' . $result;
}
?>

Fibonacci Series using recursion:

<?php
function fibonacci($n)
{
    if ( $n == 0 ) {
        return 0;
    } else if ( $n == 1 ) {
        return 1;
    } else {
        return ( fibonacci( $n - 1 ) + fibonacci( $n - 2 ) );
    }
}

$term = 10;
for ( $i = 0; $i &amp;amp;lt; $term; $i++ ) {
    echo ' '.fibonacci($i);
}
?>

Output: 0 1 1 2 3 5 8 13 21 34

Fun fact

Fibonacci Day is November 23rd, as it has the digits “1, 1, 2, 3” which is part of the sequence. So next Nov 23 let everyone know!

'Coz sharing is caring