from ACM modified first problem:Bansal Sir
Page 1 of 1
from ACM modified first problem:Bansal Sir
here is a slight modification of the very first problem on acm icpc archives
a function F such that
F(1)=1
F(n)=n/2 if n is even
F(n)=3(n)+1 if n is odd
this series converges to 1 for all n
given the range of integers from 65 to 125 find the number that converges most rapidly
a function F such that
F(1)=1
F(n)=n/2 if n is even
F(n)=3(n)+1 if n is odd
this series converges to 1 for all n
given the range of integers from 65 to 125 find the number that converges most rapidly
ballu- Posts : 58
Join date : 2009-02-01
Similar topics
» FIBONACCI recursion modified:Bhagalpur Sir
» ASCII VALUE : Bansal Sir
» PRODUCTS: Bansal Sir
» Guess Output - Bansal Sir
» FIND ELEMENTS: Bansal Sir
» ASCII VALUE : Bansal Sir
» PRODUCTS: Bansal Sir
» Guess Output - Bansal Sir
» FIND ELEMENTS: Bansal Sir
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|