Q: Programme Rowland’s formula and verify his results. Try different starting values and see what happens.
In Sage math cloud, I did this:
i=7 n=2 for n in [1..10]: i=i+gcd(n,i) print i
Could you help, please?
1 | initial version |
Q: Programme Rowland’s formula and verify his results. Try different starting values and see what happens.
In Sage math cloud, I did this:
i=7 n=2 for n in [1..10]: i=i+gcd(n,i) print i
Could you help, please?