HAPPY NUMBER

Let call a number x of n digits to be a happy number if x^{k} has it last n digits same as the number x for any k (k is a natural number ). Also there exist some smallest p such that 2^{p} has it last n digits same as the number x. (where p varies with n). If for some fixed n, p/n=125, then find p+x for that fixed n.

×

Problem Loading...

Note Loading...

Set Loading...