A function T(x) is defined as follows, where x is a positive integer:

If x is even, divide x by 2;

If x is odd, calculate the sum of

*all*the factors of x (including 1 and x itself).

Repeat these rules, thereby creating a sequence of numbers. Let S

_{0}=x, S

_{1}=T(x), S

_{2}=T(T(x)) and so on, so that S

_{n}=T

^{n}(x). Also, let m be the first iteration at which S

_{m}=T

^{m}(x)=1. Note that T(1)=1, so we terminate the sequence at the first 1 we encounter.

For example, if x=5, S

_{0}=5, S

_{1}=6, S

_{2}=3, S

_{3}=4, S

_{4}=2, S

_{5}=1. This results in the sequence {5, 6, 3, 4, 2, 1}, so that for x=5, m=5.

a) Find the value of m for x=121.

b) Find the values of x for which m=7.

One open question to ponder is whether such a sequence terminates for every starting value of x.

**Feel free to comment, ask questions and even check your answer in the comments box below powered by**~~Disqus~~ Google+.

**}**

**This space is here to avoid seeing the answers before trying the problem!**

*}*

**If you enjoy using this website then please consider making a donation - every little helps :-)**

**You can receive these questions directly to your email box or read them in an RSS reader. Subscribe using the links on the right.**

**Don’t forget to follow Gifted Mathematics on Google+, Facebook or Twitter. You may add your own interesting questions on our Google+ Community and Facebook..**

You can also subscribe to our Bookmarks on StumbleUpon and Pinterest. Many resources never make it onto the pages of Gifted Mathematics but are stored in these bookmarking websites to share with you.You can also subscribe to our Bookmarks on StumbleUpon and Pinterest. Many resources never make it onto the pages of Gifted Mathematics but are stored in these bookmarking websites to share with you.

## No comments:

## Post a Comment