ICTD 351: Introduction To Computer Programming For The Mathematics Teacher
ICTD 351: Introduction To Computer Programming For The Mathematics Teacher
Introduction to Computer
Programming for the
Mathematics Teacher
Fn
5 2 2
As you see, the terms of the sequence are integers
but the square root and powers are double.
Therefore there is the need to do casting.
Let us break the formula into small pieces to ease in
the writing of the program (divide and conquer).
n n
1 5 1 5 ab
Let a , b , c
2 2 5