@Vikas It was my observation.
@abhishek Sum of digits will be 8 because all the digits tell you the number 
of times they appear

Lets just say the number is
Number --> a b c d e f g h
@Digits   > 0 1 2 3 4 5 6 7

a+b+c+d+e+f+g+h = 8

One more observation :

a*0 + b*1 + c*2 + d*3 + e*4 + f*5 + g*6 + h*7 = 8

for example if at 3digit position  we have '2' in the number then 3 will be 
present twice in the number 
so at the positions, '3' is present in the number ,those digits will be 
present 3 times hence 
3*2=6 digits because of 3digit position.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/algogeeks/-/AacF_EomYUIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to