If you are really impatient then http://oeis.org/A037123 :)

On Mon, Mar 21, 2011 at 2:47 PM, saurabh singh <[email protected]> wrote:

> Dont panic its not that hard....SWee the pattern ;-)
>
>
> On Mon, Mar 21, 2011 at 10:21 AM, Anurag atri <[email protected]>wrote:
>
>> @Sanchit - :)
>>
>>
>> On Mon, Mar 21, 2011 at 9:38 AM, Akash Mukherjee <[email protected]>wrote:
>>
>>> thanks, :)
>>>
>>>
>>> On Sun, Mar 20, 2011 at 8:21 PM, Anurag atri 
>>> <[email protected]>wrote:
>>>
>>>> http://mathforum.org/library/drmath/view/57919.html
>>>> check this out .
>>>>
>>>> On Sun, Mar 20, 2011 at 7:38 PM, Akash Mukherjee <[email protected]>wrote:
>>>>
>>>>> Majid is a 3rd-grade elementary student and quite well in mathematics.
>>>>> Once, Majid's teacher asked him to calculate the sum of numbers 1 through 
>>>>> n.
>>>>>
>>>>> Majid quickly answered, and his teacher made him another challenge. He
>>>>> asked Majid to calculate the sum of the digits of numbers 1 through n.
>>>>>
>>>>> Majid did finally find the solution. Now it is your turn, can you find
>>>>> a solution?
>>>>> Input
>>>>>
>>>>> Two space-separated integers 0 <= a <= b <= 109.
>>>>>
>>>>> Program terminates if a and b are -1.
>>>>> Output
>>>>>
>>>>> The sum of the digits of numbers a through b.
>>>>> Example
>>>>>
>>>>> *Input:*
>>>>> 1 10
>>>>> 100 777
>>>>> -1 -1
>>>>> *Output:*
>>>>> 46
>>>>> 8655
>>>>>
>>>>> ne ideas??
>>>>>
>>>>>  --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Algorithm Geeks" group.
>>>>> 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.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Regards
>>>> Anurag Atri
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Algorithm Geeks" group.
>>>> 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.
>>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Algorithm Geeks" group.
>>> 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.
>>>
>>
>>
>>
>> --
>> Regards
>> Anurag Atri
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> 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.
>>
>
>
>
> --
> Saurabh Singh
> B.Tech (Computer Science)
> MNNIT ALLAHABAD
>
>
>


-- 
Saurabh Singh
B.Tech (Computer Science)
MNNIT ALLAHABAD

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
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